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一定不要慌張,細心察看日志,堅持學習。