Details
Description
Hello.
I have following properties file:
whirr.cluster-name=vpv-hadoop whirr.cluster-user=persona whirr.instance-templates=1 hadoop-namenode+hadoop-jobtracker+hadoop-datanode+hadoop-tasktracker whirr.hadoop.install-function=install_cdh_hadoop whirr.hadoop.configure-function=configure_cdh_hadoop whirr.provider=aws-ec2 whirr.identity=XXXXXXXXXXXXXXXX whirr.credential=YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY whirr.hardware-id=m1.large # This is custom AMI based on Ubuntu 10.04 LTS (lucid) ami-8fac75e6 whirr.image-id=us-east-1/ami-e005de89 # jclouds.ec2.ami-query=owner-id=215688387811;state=available;image-type=machine whirr.location-id=us-east-1 # This property is required since I use custom AMI whirr.login-user=ubuntu
At the end of deployment I got following message:
You can log into instances using the following ssh commands:
'ssh -i /home/vpv/.ssh/id_rsa -o "UserKnownHostsFile /dev/null" -o StrictHostKeyChecking=no ubuntu@50.17.168.40'
However, this command is incorrect:
$ ssh -i /home/vpv/.ssh/id_rsa -o "UserKnownHostsFile /dev/null" -o StrictHostKeyChecking=no ubuntu@50.17.168.40
Warning: Permanently added '50.17.168.40' (RSA) to the list of known hosts.
Permission denied (publickey).
The correct one is using value of whirr.cluster-user property:
$ ssh -i /home/vpv/.ssh/id_rsa -o "UserKnownHostsFile /dev/null" -o StrictHostKeyChecking=no persona@50.17.168.40 hostname
Warning: Permanently added '50.17.168.40' (RSA) to the list of known hosts.
ip-10-34-83-52
$
That is because jclouds creates new keypair based on cluster name and injects it for 'login-user' account. While key specified in whirr.private-key-file is used for 'cluster-user' account