Cannot open channel to 2 at election address CentOSA/192.168.184.128:3888 解决办法
/opt/modules/zookeeper-3.4.5#进入后,使用下面命令启动正常bin/zkServer.sh start## shzkServer.sh start启动回报错误LOOKING (my state)2020-02-07 13:49:18,539 [myid:1] - WARN [WorkerSender[myid=1]:QuorumCnxMan...
解决办法
1、先确定网络是否正常?
2、先确定zk是否启动成功?
重新启动一下Zk即可!
/opt/modules/zookeeper-3.4.5
#进入后,使用下面命令启动正常
bin/zkServer.sh start
## sh zkServer.sh start 启动回报错误
LOOKING (my state)
2020-02-07 13:49:18,539 [myid:1] - WARN [WorkerSender[myid=1]:QuorumCnxManager@368] - Cannot open channel to 2 at election address CentOSA/192.168.184.128:3888
java.net.ConnectException: Connection refused (Connection refused)
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at org.apache.zookeeper.server.quorum.QuorumCnxManager.connectOne(QuorumCnxManager.java:354)
at org.apache.zookeeper.server.quorum.QuorumCnxManager.toSend(QuorumCnxManager.java:327)
at org.apache.zookeeper.server.quorum.FastLeaderElection$Messenger$WorkerSender.process(FastLeaderElection.java:393)
at org.apache.zookeeper.server.quorum.FastLeaderElection$Messenger$WorkerSender.run(FastLeaderElection.java:365)
at java.lang.Thread.run(Thread.java:748)
2020-02-07 13:49:18,540 [myid:1] - WARN [WorkerSender[myid=1]:QuorumCnxManager@368] - Cannot open channel to 3 at election address CentOSB/192.168.184.130:3888
java.net.ConnectException: Connection refused (Connection refused)
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
更多推荐
所有评论(0)