2013-05-31 148 views
0

執行開始的下屬節點通過以下命令的方式:不成功的連接到羣集的從屬節點上服務的集羣

[email protected]:/export/hadoop-1.0.1/bin$. ./start-all.sh 

不是我第一次收到結果

starting namenode, logging to /export/hadoop-1.0.1/libexec/../logs/hadoop--namenode-one.out 
192.168.1.10: starting datanode, logging to /export/hadoop-1.0.1/libexec/../logs/hadoop-hadoop-datanode-myhost2.out 
192.168.1.11: ssh: connect to host 192.168.1.11 port 22: Connection timed out 
192.168.1.5: starting secondarynamenode, logging to /export/hadoop-1.0.1/libexec/../logs/hadoop-hadoop-secondarynamenode-one.out 
starting jobtracker, logging to /export/hadoop-1.0.1/libexec/../logs/hadoop--jobtracker-one.out 
192.168.1.10: starting tasktracker, logging to /export/hadoop-1.0.1/libexec/../logs/hadoop-hadoop-myhost2.out 
192.168.1.11: ssh: connect to host 192.168.1.11 port 22: Connection timed out 

如何解決以下錯誤:

ssh: connect to host port 22: Connection timed out 

[email protected]: /export/hadoop-1.0.1/bin$ ssh -vvv 192.168.1.10 
Sun_SSH_1.5, SSH protocols 1.5/2.0, OpenSSL 0x1000004f 
debug1: Reading configuration data /etc/ssh/ssh_config 
debug1: Rhosts Authentication disabled, originating port will not be trusted. 
debug1: ssh_connect: needpriv 0 
debug1: Connecting to 192.168.1.10 [192.168.1.10] port 22 
debug1: connect to address 192.168.1.10 port 22: Connection timed out 
ssh: connect to host 192.168.1.10 port 22: Connection timed out 

怎樣做才能糾正錯誤?

+1

歡迎來到SO!我編輯了你的帖子,讓你的問題更清楚。 – Brian

+1

+1 @布萊恩。這就是新手們應該如何對待 – Tariq

+0

@Tariq - 我真的很感謝+1,謝謝! – Brian

回答

0

你的機器上運行着sshd守護程序嗎?您的操作系統可能帶有ssh,但爲了啓動sshd守護程序,您需要完全安裝ssh。完成我的意思是:

ssh:我們用來連接遠程計算機的命令 - 客戶端。

sshd:在服務器上運行並允許客戶端連接到此服務器的守護進程。

此外,請確保端口22沒有問題。如果您仍然遇到一些問題,請嘗試使用-v開關ssh以獲取完整跟蹤。

ssh -v myhost2 

你可以去here瞭解ssh的詳細解釋。

+0

的hadoop @之一:/export/hadoop-1.0.1/bin$ SSH -v 192.168.1.10 \t Sun_SSH_1.5,SSH協議1.5/2.0,OpenSSL的0x1000004f \t DEBUG1:讀取配置數據的/ etc/SSH/ssh_config中 \t debug1:Rhosts身份驗證已禁用,原始端口將不受信任。 \t DEBUG1:ssh_connect:needpriv 0 \t DEBUG1:連接到192.168.1.10 [192.168.1.10]端口22 \t DEBUG1:連接到地址爲192.168.1.10端口22:連接超時 \t SSH:連接到主機192.168.1.10端口22:連接超時 @Tariq – user2441408