Skip to content

Instantly share code, notes, and snippets.

@vigith
Created June 22, 2012 18:59
Show Gist options
  • Save vigith/2974525 to your computer and use it in GitHub Desktop.
Save vigith/2974525 to your computer and use it in GitHub Desktop.
cd ~/git/operations ; git pull
HOST=<$IP> (eg, 10.194.17.124)
rsync -aze "ssh -i $HOME/keys/ops -l ec2-user" ~/git/operations/chef-solo/ $HOST:/tmp/chef-solo
ssh -i ~/keys/ops -l ec2-user -tt $HOST sh /tmp/chef-solo/setup-chef
login to $ip (10.194.17.124)
----------------------------
scp /tmp/binutils-2.20.51.0.7-8.29.amzn1.x86_64.rpm 10.60.94.53:/tmp
sudo rpm -i --nodigest /tmp/binutils-2.20.51.0.7-8.29.amzn1.x86_64.rpm
sudo umount /media/ephemeral0
sudo mkdir -p /data/{1,2,3,4}
sudo chef-solo -j /var/chef-solo/hadoop-slavenode.json
for service in /etc/init.d/hadoop-*; do sudo $service restart; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment