开发者

Error SSHing to Elastic MapReduce JobFlow on AWS

When following the tutorial instructions for connecting to my JobFlow in EMR, I type following:

 ./elastic-mapreduce --jobflow j-3FLVMX9CYE5L6 --ssh

and get this error:

Permission denied (publickey)

I'm already able to run other elastic-mapreduce commands just fine to create flows etc, so I'm assuming there's security settings required on the actual master instance for 开发者_如何学Pythonthe flow, but nothing in the tutorial explains how to configure this (after all, I need to SSH into it to do the configuration in the first place!)


I found that I need to login as user "hadoop" using the EC2 keypair, and not any of the regular suspects (ec2-user, root, etc.) Like:

ssh -i privatekey.pem hadoop@masternode

Hope this is useful to someone.


Ok now I feel sheepish: I was using the Amazon CloudFront keypair from the my initial account setup rather than keypair associated with my account for accessing EC2 instances, accessible from EC2 > Network & Security > Key Pairs in the AWS Management Console.


The command "ssh -i privatekey.pem hadoop@masternode" worked great. The user "hadoop" must be used for "ec2 elastic mapreduce".

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜