how to restart hadoop cluster on emr

不羁的心 提交于 2019-12-22 10:28:58

问题


I have a hadoop installation on the Amazon Elastic MapReduce , whenever I try to restart the cluster I get the following error:

/stop-all.sh
no jobtracker to stop
The authenticity of host 'localhost (::1)' can't be established. RSA key fingerprint is
Are you sure you want to continue connecting (yes/no)? yes 
localhost: Warning: Permanently added 'localhost' (RSA) to the list of known hosts.
localhost: Permission denied (publickey).
no namenode to stop
localhost: Permission denied (publickey).
localhost: Permission denied (publickey).

Any idea on how to restart hadoop?


回答1:


Following hack worked for me.

I have replaced "ssh" command in sbin/slaves.sh & sbin/hadoop-daemon.sh with "ssh -i ~/.ssh/keyname"




回答2:


I'm using hadoop version 2.4 and this worked for me:

export HADOOP_SSH_OPTS="-i /home/hadoop/mykey.pem"



回答3:


For the stop-all.sh script to work, you probably need to have the same user in all the machines as the user with which you are executing the stop-all.sh script.

Moreover, it seems you do not have a password less ssh setup from the machine you are executing stop-all.sh to rest of the machines that will spare you from manually entering the password for each machine separately. Passwords might be different for the same user for different machines, please don't forget that.



来源:https://stackoverflow.com/questions/18813958/how-to-restart-hadoop-cluster-on-emr

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!