hadoop ssh配置伪分布式模式

iovurdzv  于 2021-06-03  发布在  Hadoop
关注(0)|答案(1)|浏览(298)

我正在本地安装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服务器的公钥添加到名为\u host的文件中。我说得对吗?
有什么办法吗?

eoxn13cs

eoxn13cs1#

这不是hadoop的问题,而是与ssh相关的东西。看起来您不久前已将localhost节点添加到已知主机文件中。现在,当您连接到它时,它有一个不同的公钥,因此ssh意识到有人试图执行中间人攻击。你可以重新设置钥匙来解决这个问题。

相关问题