INFO zookeeper.ClientCnxn: Opening socket connection to server node-03/192.168.81.136:2128. Will not attempt to authenticate using SASL (unknown error)
21/11/19 12:22:54 WARN zookeeper.ClientCnxn: Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect
java.net.ConnectException: Connection refused
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)
at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361)
at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1081)
21/11/19 12:22:55 ERROR ha.ActiveStandbyElector: Connection timed out: couldn't connect to ZooKeeper in 5000 milliseconds
21/11/19 12:22:55 INFO zookeeper.ClientCnxn: Opening socket connection to server node-01/192.168.81.134:2128. Will not attempt to authenticate using SASL (unknown error)
21/11/19 12:22:55 INFO zookeeper.ZooKeeper: Session: 0x0 closed
21/11/19 12:22:55 INFO zookeeper.ClientCnxn: EventThread shut down
21/11/19 12:22:55 FATAL ha.ZKFailoverController: Unable to start failover controller. Unable to connect to ZooKeeper quorum at node-01:2128,node-02:2128,node-03:2128. Please check the configured value for ha.zookeeper.quorum and ensure that ZooKeeper is running.
不好找,我前几天写了一个,你可以借鉴下