Amazon Elastic Map Zoom Out: Listing Job Threads in Issue Command-Line Tools

I'm new to Amazon web services, I'm trying to start workflows on an Amazon elastic map, reducing workloads using command line interface tools.

I followed the steps from the Amazon developer guide from this developer guide from aws.But things are not clear to me.

If I execute the ./elastic-mapreduce -list command to list job streams. Shows the following error.

/home/pdurai/Applications/elastic-mapreduce-cli/amazon/coral/httpdestinationhandler.rb:23: warning: else without rescue is useless /usr/local/rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': /home/pdurai/Applications/elastic-mapreduce-cli/amazon/coral/httpdestinationhandler.rb:19: syntax error, unexpected ':', expecting keyword_then or ',' or ';' or '\n' (SyntaxError) /home/pdurai/Applications/elastic-mapreduce-cli/amazon/coral/httpdestinationhandler.rb:36: syntax error, unexpected keyword_end, expecting $end from /usr/local/rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /home/pdurai/Applications/elastic-mapreduce-cli/amazon/coral/awsquery.rb:6:in `<top (required)>' from /usr/local/rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /usr/local/rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /home/pdurai/Applications/elastic-mapreduce-cli/amazon/coral/service.rb:8:in `<top (required)>' from /usr/local/rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /usr/local/rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /home/pdurai/Applications/elastic-mapreduce-cli/amazon/coral/elasticmapreduceclient.rb:6:in `<top (required)>' from /usr/local/rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /usr/local/rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /home/pdurai/Applications/elastic-mapreduce-cli/client.rb:6:in `<top (required)>' from /usr/local/rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /usr/local/rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /home/pdurai/Applications/elastic-mapreduce-cli/commands.rb:7:in `<top (required)>' from /usr/local/rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /usr/local/rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /home/pdurai/Applications/elastic-mapreduce-cli/elastic-mapreduce-cli.rb:5:in `<top (required)>' from /usr/local/rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /usr/local/rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from ./elastic-mapreduce:6:in `<main>' 

Thanks in Advance, and can anyone tell me why I am getting the above error by listing the workflows.

+4
source share
4 answers

check avilable rvm using the following command

  $ rvm list 

he will show:

  ruby-1.8.7-p374 ruby-2.0.0-p247 

then you must specify the rvm version using the following command

  $ rvm use 1.8.7 

then you can try to list the sequence of tasks.,

+4
source

If rvm does not work for you, you can try changing the symbolic link Current :

 cd /System/Library/Frameworks/Ruby.framework/Versions sudo rm Current sudo ln -s 1.8 Current 

You may need to configure the third parameter to indicate the correct version.

+2
source

I recommend learning how to do this first using the service console.

It seems your command line tool cannot connect properly. Perhaps this is a problem with your access_key and secret_key keys.

+1
source

as @ sasikkumar answer, but with rbenv

  $ rbenv versions 

he will show:

  1.8.7-p370 * 1.9.3-p194 (set by /PATH_NEEDED/.ruby-version) 

(Optional) If 1.8.7-p370 is not displayed

  $ rbenv install 1.8.7-p370 

then you must specify the rbenv version using the following command

  $ rbenv local 1.8.7-p370 

( local because it will be used in PATH_NEEDED, but you can use global for general use)

then you can try to list the sequence of tasks.,

0
source

Source: https://habr.com/ru/post/1492566/


All Articles