Hadoop ssh配置伪分布式模式

时间:2012-09-07 12:59:14

标签: ssh hadoop

我正在尝试在本地安装hadoop。基本上,我按照“Hadoop - 权威指南”中的步骤进行操作。

一切正常,包括ssh配置。实际上这不是我第一次安装hadoop。

但是当我尝试运行start-all.sh脚本时,我收到此错误:

localhost: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
localhost: @    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
localhost: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
localhost: IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
localhost: Someone could be eavesdropping on you right now (man-in-the-middle attack)!
localhost: It is also possible that the RSA host key has just been changed.
localhost: The fingerprint for the RSA key sent by the remote host is
localhost: 42:e7:95:2a:32:ac:3b:7e:fa:40:09:0d:b5:01:ed:21.
localhost: Please contact your system administrator.
localhost: Add correct host key in /home/rbelet/.ssh/known_hosts to get rid of this  msg.
localhost: Offending key in /home/rbelet/.ssh/known_hosts:1
localhost: RSA host key for localhost has changed and you have requested strict checking.
localhost: Host key verification failed.

据我所知,我应该将localhost服务器的公钥添加到known_host文件中。我是对的吗?

任何想法该怎么办?

1 个答案:

答案 0 :(得分:0)

这不是一个hadoop问题,而是一个纯粹的SSH相关的东西。看起来您已经在一段时间后将localhost节点添加到已知的主机文件中。现在当你连接到它时,它有一个不同的公钥,所以ssh意识到有人试图在中间攻击中执行一个人。您可以重新重置密钥以摆脱这种情况。