使用eclipse連接hadoop 錯誤:Call From allen/192.168.190.1 to node2:8020 failed on socket timeout exception


hadoop集群已經成功啟動,但是在使用eclipse連接的時候還是報了這個錯誤

 Exception while invoking getFileInfo of class ClientNamenodeProtocolTranslatorPB over node2/192.168.190.6:8020 after 5 fail over attempts.

at org.apache.hadoop.ipc.Client.call(Client.java:1401)
at org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngine.java:232)

 

原因是我在windows系統的hosts文件中曾修改過ip的映射,后來忘記改回來了

C:\Windows\System32\drivers\etc


192.168.190.11 node1
192.168.190.12 node2
192.168.190.13 node3
192.168.190.14 node4

hadoop的坑有很多,遇到bug一定不要慌張,細心察看日志,堅持學習。

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM