0
我想在本地安裝hadoop。基本上,我遵循「Hadoop - 權威指南」中的步驟。Hadoop ssh配置僞分佈式模式
一切正常,包括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.
據我瞭解,我應該本地主機服務器的公鑰添加到文件known_host。我對嗎 ?
任何想法該怎麼辦?
刪除雙方(客戶端和服務器)上的所有ssh密鑰,然後重試。 –
客戶端和服務器都在同一臺機器上運行,所以我刪除公共公鑰我的公鑰〜/ .ssh/id_rsa.pub – Razvan
因此,您的服務器的公鑰存儲在兩個地方。一個是客戶端,通常在.ssh/known_hosts /目錄中,另一個是剛剛提到的。刪除這些文件。 –