Download Ruby
wget http://elasticmapreduce.s3.amazonaws.com/elastic-mapreduce-ruby.zip
Check Ruby version
ruby -v
ruby 1.8.7 (2012-02-08 patchlevel 358) [universal-darwin11.0]
Verify the RubyGems installation and version
gem -v
mkdir elastic-mapreduce-cli
cd mkdir elastic-mapreduce-cli
unzip elastic-mapreduce-ruby.zip
create your credentials file
Create a file named
credentials.json
in the directory where you unzipped the Amazon EMR CLI.{
"access_id": "Your AWS Access Key ID",
"private_key": "Your AWS Secret Access Key",
"key-pair": "Your key pair name",
"key-pair-file": "The path and name of your PEM file",
"log_uri": "A path to a bucket you own on Amazon S3, such as, s3n://mylog-uri/",
"region": "The region of your cluster, either us-east-1, us-west-2, us-west-1, eu-west-1, ap-northeast-1, ap-southeast-1, ap-southeast-2, or sa-east-1"
}
Note: Must use " "
Verify installation of the Amazon EMR CLI
./elastic-mapreduce --version
Comments