How to properly configure the Amazon EC2 AMI for 'hadoop-ec2'? -


i trying launch instance on amazon ec2. have researched problem extensively, have not found helpful information.

when run command hadoop-ec2 launch-cluster mycluster 2, receive following error message:

starting master ami. required parameter 'ami' missing (-h usage) 

i have entered aws key, aws secret key, aws key pairs, etc. using hadoop-1.0.4. using default s3 bucket (hadoop-images), have tried many other amis , same error message.

has experience problem before?

the basic issue search images launch-hadoop-master script performs not returning results. cause of due different amis available in different regions (but due changes you've made s3_bucket , hadoop_version in hadoop-ec2-env.sh).

from launch-hadoop-master script:

# finding hadoop image ami_image=`ec2-describe-images -a | grep $s3_bucket                                    | grep $hadoop_version                                   | grep $arch                                   | grep available                                   | awk '{print $2}'`  # start master echo "starting master ami $ami_image" 

so, appears ami_image not being set valid image , search amis match various grep filters failing (the defaults hadoop 1.0.4 distribution s3_bucket hadoop-images, hadoop_version 0.19.0 , arch x86 if you're using m1.small instances). if search public amis in us-west-2 region, you'll see there aren't many hadoop images, if search public amis in us-east-1 region, you'll see there quite few. thus, 1 way around issue work in us-east-1 region (this simplest) or, alternatively, set ec2_url in login script via export ec2_url=https://ec2.us-east-1.amazonaws.com need make sure put keys in region aws console.

if did indeed change hadoop_version 1.0.4, i'll note

ec2-describe-images -a | grep hadoop-images                         | grep "1.0.4"'                        | grep x86                        | grep available  

doesn't return images in us-east-1 region. note version (hadoop_version) of hadoop distribution running hadoop-ec2 command not need same version of hadoop images running.

lastly, blunt fix, find ami want use, , force set ami_image image name in launch-hadoop-master , launch-hadoop-cluster scripts.


Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -