2014-03-02 86 views
0

我有2個節點的羣集設置。一個是「主從」和其他「奴隸」。
名稱節點服務啓動Hadoop數據節點未連接到主節點

「從」 節點沒有連接到主節點,給人錯誤

slave:/usr/lib/hadoop-0.20/conf# tailf /usr/lib/hadoop-0.20/logs/hadoop-hadoop-datanode-slave.log 2014-03-02 10:43:07,816 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: master-slave/192.168.1.118:54310. Already tried 4 time(s). 2014-03-02 10:43:08,817 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: master-slave/192.168.1.118:54310. Already tried 5 time(s). 2014-03-02 10:43:09,820 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: master-slave/192.168.1.118:54310. Already tried 6 time(s). 2014-03-02 10:43:10,821 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: master-slave/192.168.1.118:54310. Already tried 7 time(s).

一)。 master-slave:/usr/lib/hadoop/conf# lsof -i:54310 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME java 3080 hdfs 62u IPv4 22507 0t0 TCP master-slave:54310 (LISTEN)

b)。在覈心的site.xml

<property> <name>fs.default.name</name> <value>hdfs://master-slave:54310</value> <description>The name of the default file system. Either the literal string "local" or a host:port for NDFS.</description> <final>true</final> </property>

C)從。主節點的/ etc /主機(在從節點相同)

master-slave:/usr/lib/hadoop/conf# cat /etc/hosts 127.0.0.1 localhost 127.0.1.1 master-slave 192.168.1.118 master-slave 192.168.1.120 slave

d)。我禁用了IPV6。 e)。我無法telnet到端口54310從奴隸到主從,但能夠在端口22

看起來很奇怪,請幫我解決這個問題。我已經做出了我所知道的每一個變化,但沒有運氣

+0

從主站輸出'netstat -nlp' – 1esha

+0

日誌中有其他錯誤?這是在這種情況發生之前,您第一次啓動hadoop羣集或其運行? –

+0

感謝您的回覆。 這裏是netstat的輸出http://pastebin.com/btxMexzr @VikasHardia日誌中沒有其他錯誤。這是我第一次啓動這個羣集。 FYI還添加了奴隸文件中的節點(配置文件) – user3369960

回答

0

對於這裏未來的參考是問題,因爲主機文件編輯該文件並刪除該條目

127.0.1.1 master-slave 

刪除它工作正常後。

相關問題