zkfc报错:java.net.NoRouteToHostException: No route to host
问题:启动zkfc后立马就挂了,查看日志,发现报错如下:2016-05-12 17:15:34,452 INFO org.apache.zookeeper.ClientCnxn: Opening socket connection to server lida1/10.30.12.169:2181. Will not attempt to authenticate using SASL (
·
问题:启动zkfc后立马就挂了,查看日志,发现报错如下:
2016-05-12 17:15:34,452 INFO org.apache.zookeeper.ClientCnxn: Opening socket connection to server lida1/10.30.12.169:2181. Will not attempt to authenticate using SASL (unknown error)
2016-05-12 17:15:34,454 INFO org.apache.zookeeper.ClientCnxn: Socket connection established to lida1/10.30.12.169:2181, initiating session
2016-05-12 17:15:34,455 INFO org.apache.zookeeper.ClientCnxn: Unable to read additional data from server sessionid 0x0, likely server has closed socket, closing socket connection and attempting reconnect
2016-05-12 17:15:35,381 INFO org.apache.zookeeper.ClientCnxn: Opening socket connection to server lida3/10.30.12.171:2181. Will not attempt to authenticate using SASL (unknown error)
2016-05-12 17:15:35,415 WARN org.apache.zookeeper.ClientCnxn: Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect
java.net.NoRouteToHostException: No route to host
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:739)
at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361)
at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1081)
2016-05-12 17:15:36,135 ERROR org.apache.hadoop.ha.ActiveStandbyElector: Connection timed out: couldn't connect to ZooKeeper in 5000 milliseconds
2016-05-12 17:15:36,789 INFO org.apache.zookeeper.ClientCnxn: Opening socket connection to server lida2/10.30.12.170:2181. Will not attempt to authenticate using SASL (unknown error)
2016-05-12 17:15:36,897 INFO org.apache.zookeeper.ZooKeeper: Session: 0x0 closed
2016-05-12 17:15:36,899 INFO org.apache.zookeeper.ClientCnxn: EventThread shut down
2016-05-12 17:15:36,923 FATAL org.apache.hadoop.ha.ZKFailoverController: Unable to start failover controller. Unable to connect to ZooKeeper quorum at lida1:2181,lida2:2181,lida3:2181. Please check the configured value for ha.zookeeper.quorum and ensure that ZooKeeper is running.
出现原因:没关闭防火墙。
解决方法:首先关闭虚拟机的防火墙,然后再启动zkfc。
更多推荐
已为社区贡献1条内容
所有评论(0)