使用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一定不要慌张,细心察看日志,坚持学习。

猜你喜欢

转载自www.cnblogs.com/allenyip/p/11207252.html