启动后日志如下 :
2016-09-14 05:51:19,449 [myid:1] - INFO [QuorumPeer[myid=1]/0:0:0:0:0:0:0:0:2181:FastLeaderElection@852] - Notification time out: 12800
2016-09-14 05:51:32,259 [myid:1] - INFO [QuorumPeer[myid=1]/0:0:0:0:0:0:0:0:2181:QuorumCnxManager@199] - Have smaller server identifier, so dropping the connection: (2, 1)
2016-09-14 05:51:32,262 [myid:1] - INFO [QuorumPeer[myid=1]/0:0:0:0:0:0:0:0:2181:QuorumCnxManager@199] - Have smaller server identifier, so dropping the connection: (3, 1)
2016-09-14 05:51:32,263 [myid:1] - INFO [QuorumPeer[myid=1]/0:0:0:0:0:0:0:0:2181:FastLeaderElection@852] - Notification time out: 25600
集群中其他节点日志如下:
Cannot open channel to 1 at election address ****:3888
调查 , 排除网络 , 防火墙问题
netstat -apn |grep 3888
tcp6 0 0 127.0.0.1:3888 :::* LISTEN 2275/java
发现问题 , 修改 DNS 解析,问题解决..