amazon-ec2

bluepill not detecting that processes have, in fact, started successfully, and so creates new ones

流过昼夜 提交于 2020-01-25 06:04:04
问题 I have one (EC2) Ubuntu server where bluepill is working just fine to start and monitoring resque processes (and it has done so on other nodes in the past). I'm setting up a new node, and for some reason on this node bluepill does not recognize that the processes have started and are running, and so keeps creating new ones. I'm a little baffled by what's causing this. The 2 nodes are almost identical; they're both EC2 servers provisioned by the same chef scripts. It is true that the one not

Sending Commands from Jupyter/IPython running on EC2 to EMR cluster

ぐ巨炮叔叔 提交于 2020-01-25 01:25:12
问题 Can we send commands from Jupyter/IPython notebook running on AWS EC2 to AWS EMR having our code of word count ? I have followed the following url for installation of Jupyter on EC2. There is another link which installs Jupyter on EMR and performs Word Count However i want to seperate the Jupyter to come on EC2 and Word Count to execute on EMR. Is there any way that this could be done ? 回答1: This AWS Big Data Blog post for running Zeppelin on an external EC2 host connected to an EMR cluster

Second Virtual Host's DocumentRoot is changed after launching ec2 based on customized Amazon Linux AMI

人盡茶涼 提交于 2020-01-24 23:05:14
问题 I've searched for two days, but I couldn't find an explanation for this behavior. I have followed AWS docs. I've launched ec2 instance with recommend Amazon Linux AMI (aki-c48f51d9). Then customized my ec2 instance to my needs, including Apache's config: /etc/httpd/conf/httpd.conf My customization created two Virtual Hosts, as indicated below: <VirtualHost *:80> ServerName www.domain1.com ServerAlias domain1.com ServerAdmin support@domain1.com DocumentRoot "/var/www/html/folder1" <

Installed Riak does not have advanced.conf

断了今生、忘了曾经 提交于 2020-01-24 21:23:40
问题 I have Riak 2.1.4 installed by deb file in ubuntu. A couple of questions : I dont see advanced.conf file in /etc/riak , where can i locate it ? Anybody has a basic config files for riak.conf and advanced.conf for a 5 node cluster. Please share. i have added security ports in inbound tab of security group i see they cannot communicate. Does it look fine ? Thanks in advance 来源: https://stackoverflow.com/questions/40495788/installed-riak-does-not-have-advanced-conf

Ansible AWS dynamic inventory connection not working

拈花ヽ惹草 提交于 2020-01-24 20:48:07
问题 I am trying to configure a server on AWS using ansible with a dynamic inventory script. I created an ec2 instance which works fine and which I can manually ssh into. However, when trying to reach the instance (just to ping or to install software) I run into trouble. ansible -i ec2.py all -m ping xx.xx.xx.xx | FAILED! => { "changed": false, "failed": true, "module_stderr": "Shared connection to xx.xx.xx.xx closed.\r\n", "module_stdout": "/bin/sh: 1: /usr/bin/python: not found\r\n", "msg":

To deploy Play Framework apps in AWS (Amazon) ec2 using Ansible playbook

荒凉一梦 提交于 2020-01-24 20:15:12
问题 I am very new to AWS ec2 platform. I wanted to deploy my play 2.* app in the ec2. Also I need to deploy it through git in future update. I have done a decent research on it and found Ansible playbook could be a better solution to this. But I am using windows and configured it with ec2 using putty. Now I know very less about command line programming and Ansible and Ansible playbook . I need some help to find the solution for play to run in ec2 throug git directly. I am sharing some interesting

Sparklyr on RStudio EC2 with invoke error hadoopConfiguration standalone cluster

ⅰ亾dé卋堺 提交于 2020-01-24 13:20:48
问题 So I have a 1 master/2 slave standalone cluster on EC2. I am running rstudio from EC2 and after I run the following code: library(aws.s3) library(sparklyr) library(tidyverse) library(RCurl) Sys.setenv("AWS_ACCESS_KEY_ID" = "myaccesskeyid", "AWS_SECRET_ACCESS_KEY" = "myaccesskey", "SPARK_CONF_DIR" = "/home/rstudio/spark/spark-2.1.0-bin-hadoop2.7/bin/", "JAVA_HOME" = "/usr/lib/jvm/java-8-oracle" ) ctx <- spark_context(sc) jsc <- invoke_static(sc, "org.apache.spark.api.java.JavaSparkContext",

EC2 VPC Instance - Ports are filtered

一个人想着一个人 提交于 2020-01-24 10:27:26
问题 I've configured my server with a default security group, which has the following Inbound rules: | Type | Protocol | Port Range | Source | | All TCP | TCP | 0-65535 | 0.0.0.0/0 | | All UDP | UDP | 0-65535 | 0.0.0.0/0| With these rules, netstat shows the following output: netstat -atn Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:5432 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:1113 0.0.0.0:

Unlock Jenkins - how to

天涯浪子 提交于 2020-01-24 10:21:27
问题 I have installed jenkins on my ec2 instance using putty, from my windows system When I try to access jenkins through web, I get the Unlock Jenkins using /var/lib/jenkins/secrets/initialAdminPassword enter image description here How to get to this location as if accessing through putty, I get permission denied to this folder. Please advise, I am new to ubuntu and jenkins 回答1: My solution is similar to the one by Mark B, I viewed the secrets by executing the cat command on the

Security Group and Subnet Belongs to different networks

梦想与她 提交于 2020-01-24 06:42:28
问题 I am creating a basic AWS CloudFormation Template with one VPC, 3 Security Group and 5 EC2 Instances my security group looks something like this - { "WebApplicationServerSG": { "Type": "AWS::EC2::SecurityGroup", "Properties": { "VpcId": { "Ref": "DevVpc" }, "GroupDescription": "Enable HTTP, HTTPS and SSH access", "Tags": [ { "Key": "Name", "Value": "WebApplicationServer Service Group" } ], "SecurityGroupIngress": [ { "IpProtocol": "tcp", "FromPort": "443", "ToPort": "443", "CidrIp": "0.0.0.0