格式化namenode时 报错 No Route to Host from node1/192.168.1.111 to node3:8485 failed on socket timeout exception: java.net.NoRouteToHostException: No route to host

17/08/03 16:06:05 FATAL namenode.NameNode: Failed to start namenode.
org.apache.hadoop.hdfs.qjournal.client.QuorumException: Unable to check if JNs are ready for formatting. 1 successful responses:
192.168.1.114:8485: false
1 exceptions thrown:
192.168.1.113:8485: No Route to Host from  node1/192.168.1.111 to node3:8485 failed on socket timeout exception: java.net.NoRouteToHostException: No route to host; For more details see:  http://wiki.apache.org/hadoop/NoRouteToHost
    at org.apache.hadoop.hdfs.qjournal.client.QuorumException.create(QuorumException.java:81)
    at org.apache.hadoop.hdfs.qjournal.client.QuorumCall.rethrowException(QuorumCall.java:223)
    at org.apache.hadoop.hdfs.qjournal.client.QuorumJournalManager.hasSomeData(QuorumJournalManager.java:232)
    at org.apache.hadoop.hdfs.server.common.Storage.confirmFormat(Storage.java:899)
    at org.apache.hadoop.hdfs.server.namenode.FSImage.confirmFormat(FSImage.java:171)
    at org.apache.hadoop.hdfs.server.namenode.NameNode.format(NameNode.java:941)
    at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1387)
    at org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1512)
17/08/03 16:06:05 INFO util.ExitUtil: Exiting with status 1

报错内容如上,在格式化namenode时报错,系统为centos7

原因:关闭防火墙时用的service iptables stop

解决方法:使用命令  systemctl stop firewalld 来关闭防火墙

再次格式化namenode,成功。

 

点赞