amazon-ami

EC2 instance launched from AMI not reachable(ssh) after start/stop or reboot

与世无争的帅哥 提交于 2019-12-06 00:29:57
问题 When we launch an instance from an AMI. At first the instance is accessible(ssh). Once we stop/start the instance or reboot it the machine becomes inaccessible via ssh,we can ping it though. We see below error in System log. AMI ID used - ami-72dc9220 Instance - i-0896a15f - Linux rhel6.4 M1.large instance. ../ ******************* BLKFRONT for device/vbd/2049 ********** backend at /local/domain/0/backend/vbd/236/2049 Failed to read /local/domain/0/backend/vbd/236/2049/feature-barrier. Failed

rgdal won't install on AWS RStudio AMI

做~自己de王妃 提交于 2019-12-05 22:10:19
I have managed to successfully launch the most recent RStudio AWS EC2 instance (louisaslett.com, RStudio-1.1383_R-3.4.2…ubuntu-16.04-LTS-64). R operates mostly as expected in this instance, and I can install and open a number of packages. However I get an error if I try to install either of the rgdal of gdalUtils packages. Below is the console output when I attempt to install rgdal. The output for the gdalUtils install is too long to include here, but both include the text "error: upgrade GDAL to 1.11.4 or later" which I suspect is the problem, but have no idea how to correct. Any thoughts or

Spark AMI for AWS EC-2

橙三吉。 提交于 2019-12-05 14:12:11
Is there a way to specify the AWS AMI with particular OS (say Ubuntu) when launching Spark on Amazon cloud with provided scripts? What is the default AMI, operating system that is launched by EC-2 script? Is it eligible for "Free Tier" program by AWS? The script ( spark_ec2.py ) takes the AMI list from https://github.com/mesos/spark-ec2/tree/branch-1.3/ami-list by default. You can override it by creating a fork with your preferences and selecting it with --spark-ec2-git-repo and --spark-ec2-git-branch . 来源: https://stackoverflow.com/questions/28524380/spark-ami-for-aws-ec-2

Performance issue in hive version 0.13.1

家住魔仙堡 提交于 2019-12-05 02:03:55
问题 I use AWS-EMR to run my Hive queries and I have a performance issue while running hive version 0.13.1. The newer version of hive took around 5 minutes for running 10 rows of data. But the same script for 230804 rows is taking 2 days and is still running. What should I do to analyze and fix the problem? Sample Data: Table 1: hive> describe foo; OK orderno string Time taken: 0.101 seconds, Fetched: 1 row(s) Sample data for table1: hive>select * from foo; OK 1826203307 1826207803 1826179498

Amazon AWS Java API. I don't see my AMIs

喜你入骨 提交于 2019-12-04 15:34:07
I'm using the Java API for Amazon AWS. I successfully authenticate, then get all images and my images are not among them (my AMIs are private, but I suppose that I will still see them since I have been authenticated). Here is my source... final AmazonEC2 client = new AmazonEC2Client(credentails); for(Image image: client.describeImages().getImages()){ if(image.getOwnerId().equals("1234567890")){ //... do something usefull with the AMI } } And my "OwnerId" is not among the received ones. What is the problem, I won't make my AMIs public, how can I get my AMIs? ANSWER: I was in a wrong region, and

How can I use/install “make” on the Amazon Linux AMI for EC2?

。_饼干妹妹 提交于 2019-12-04 08:55:27
I'm a new user of Amazon EC2. I want to compile the pptpd package on EC2, but receive the following error: [root@ip-10-112-xxx-xxx /]# /var/tmp/rpm-tmp.2eILT0: line 58: /usr/bin/make: No such file or directory I searched the entire root directory tree, but make isn't available: [root@ip-10-112-59-187 /]# find . -name "make" ./etc/mail/make I'm wondering whether make is actually installed on the Amazon Linux AMI initially? If not, how do I install it? Preface The Amazon Linux AMI is (loosely) based on CentOS and a perfectly decent OS for EC2, in fact it has been tailored by Amazon for EC2

How to make EC2 user-data work on freshly built AMI, made with Packer

回眸只為那壹抹淺笑 提交于 2019-12-04 08:15:00
I can build AMI images just fine. But they've stopped working with EC2 User Data: There is user data: $ cat /tmp/user_data.sh #!/bin/bash touch /tmp/i_have_user_data /root/i_have_user_data And I can launch a plain Ubuntu image: aws ec2 run-instances --instance-type m3.medium --image-id ami-eed10e86 --user-data file:///tmp/user_data.sh And it works: ubuntu@ip-10-165-90-180:~$ ls /tmp/i_have_user_data /tmp/i_have_user_data But if I build an AMI based on that one, with Packer: "builders": [ { "type": "amazon-ebs", "region": "us-east-1", "source_ami": "ami-eed10e86", "instance_type": "m3.large",

EC2 instance launched from AMI not reachable(ssh) after start/stop or reboot

我只是一个虾纸丫 提交于 2019-12-04 07:36:24
When we launch an instance from an AMI. At first the instance is accessible(ssh). Once we stop/start the instance or reboot it the machine becomes inaccessible via ssh,we can ping it though. We see below error in System log. AMI ID used - ami-72dc9220 Instance - i-0896a15f - Linux rhel6.4 M1.large instance. ../ ******************* BLKFRONT for device/vbd/2049 ********** backend at /local/domain/0/backend/vbd/236/2049 Failed to read /local/domain/0/backend/vbd/236/2049/feature-barrier. Failed to read /local/domain/0/backend/vbd/236/2049/feature-flush-cache. 14680064 sectors of 512 bytes *******

How do I save an AMI to a S3 bucket?

五迷三道 提交于 2019-12-03 23:56:12
I've created an AMI(EBS AMI) using the Amazon AWS console. That AMI has 2 snapshots attached to it. Now I want to backup that AMI to a S3 bucket. Is this possible? I actually need to do this to be able to then move that AMI to a bucket in a different region and register that AMI for use in that different region. Any clues? Update My initial answer still applies concerning the question as such (see below), however, given you actually need to do this to be able to then move that AMI to [...] a different region , you will be pleased that AWS has just released Cross Region EC2 AMI Copy to address

Creating AMI takes so long

对着背影说爱祢 提交于 2019-12-03 10:25:04
问题 I'm creating an AMI for a server with 100G files. It's been like an hour and it's still not finished. (The AMI still says pending) Is there something wrong with it? What should I do? 回答1: Alright so at this moment this seems like a stupid question. But I was very worried during that time :-) Just to let other people know, this process could take very, very long. My 100 GB AMI takes like 2.5 hours to create and the progress bar jumps from 0 to 100 directly after that. So don't worry. 回答2: I