Hi,

Did you see hadoop-0.16.0/src/contrib/ec2/bin/start-hadoop script? It already contains such part:

echo "Copying private key to slaves"
for slave in `cat slaves`; do
  scp $SSH_OPTS $PRIVATE_KEY_PATH "[EMAIL PROTECTED]:/root/.ssh/id_rsa"
  ssh $SSH_OPTS "[EMAIL PROTECTED]" "chmod 600 /root/.ssh/id_rsa"
  sleep 1
done

Anyway, did you tried hadoop-ec2 script? It works well for task you described.


Prasan Ary wrote:
Hi All,
  I have been trying to configure Hadoop on EC2 for large number of clusters ( 
100 plus). It seems that I have to copy EC2 private key to all the machines in 
the cluster so that they can have SSH connections.
  For now it seems I have to run a script to copy the key file to each of the 
EC2 instances. I wanted to know if there is a better way to accomplish this.
Thanks,
  PA

---------------------------------
Never miss a thing.   Make Yahoo your homepage.

---
Andrey Pankov

Reply via email to