2012-09-07 81 views
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。我對嗎 ?

任何想法該怎麼辦?

+0

刪除雙方(客戶端和服務器)上的所有ssh密鑰,然後重試。 –

+0

客戶端和服務器都在同一臺機器上運行,所以我刪除公共公鑰我的公鑰〜/ .ssh/id_rsa.pub – Razvan

+0

因此,您的服務器的公鑰存儲在兩個地方。一個是客戶端,通常在.ssh/known_hosts /目錄中,另一個是剛剛提到的。刪除這些文件。 –

回答

0

這不是一個hadoop問題,而是一個純SSH相關的東西。看起來好像你已經將localhost節點添加到已知的主機文件。現在當你連接到它時,它有一個不同的公鑰,所以ssh意識到有人試圖在中間人攻擊中執行一個人。你可以重新設置鑰匙來擺脫這個。

相關問題