mapreduce - When bootstrapping an amazon elastic map reduce job, can my script use sudo? -
i need to:
sudo apt-get install rubygems sudo gem install <lots of gems>
does bootstrap action have sudo access?
the answer yes. can test bootstrap script this:
elastic_mapreduce --create --alive --ssh
this create node , give ssh connection it, can test bootstrap script.
update: reference here i'm running:
#!/bin/bash sudo apt-get -y -v install irb1.8 libreadline-ruby1.8 libruby libruby1.8 rdoc1.8 ruby ruby1.8 ruby1.8-dev wget http://production.cf.rubygems.org/rubygems/rubygems-1.8.11.zip unzip rubygems-1.8.11.zip cd rubygems-1.8.11 sudo ruby setup.rb sudo gem1.8 install bson bson_ext json tzinfo i18n activesupport --no-rdoc --no-ri
update2: install aws-sdk
#!/bin/bash # ruby developer packages sudo apt-get -y -v install ruby1.8-dev ruby1.8 ri1.8 rdoc1.8 irb1.8 sudo apt-get -y -v install libreadline-ruby1.8 libruby1.8 libopenssl-ruby # nokogiri requirements sudo apt-get -y -v install libxslt-dev libxml2-dev wget http://production.cf.rubygems.org/rubygems/rubygems-1.8.11.zip unzip rubygems-1.8.11.zip cd rubygems-1.8.11 sudo ruby setup.rb sudo gem1.8 install aws-sdk --no-rdoc --no-ri
-y on apt-get makes not prompt you
i wget rubygems because version apt-get way out of date, , gems won't build using old version.
Comments
Post a Comment