其他分享
首页 > 其他分享> > Have smaller server identifier, so dropping the connection: (2, 1)

Have smaller server identifier, so dropping the connection: (2, 1)

作者:互联网

有5个zk节点,有1个节点查看状态一直报错:

ZooKeeper JMX enabled by default
Using config: /home/hadoop/bigdata/zk/bin/../conf/zoo.cfg
Client port found: 2181. Client address: localhost.
Error contacting service. It is probably not running.

手工重启后,任然是上面的信息,感觉很奇怪。查看zk的日志信息,发现了下面的打印信息。

2022-09-14 23:29:40,575 [myid:1] - INFO  [NIOWorkerThread-1:FourLetterCommands@234] - The list of known four letter word commands is : [{1936881266=srvr, 1937006964=stat, 2003003491=wchc, 1685417328=dump, 1668445044=crst, 1936880500=srst, 1701738089=envi, 1668247142=conf, -720899=telnet close, 2003003507=wchs, 2003003504=wchp, 1684632179=dirs, 1668247155=cons, 1835955314=mntr, 1769173615=isro, 1920298859=ruok, 1735683435=gtmk, 1937010027=stmk}]
2022-09-14 23:29:40,575 [myid:1] - INFO  [NIOWorkerThread-1:FourLetterCommands@235] - The list of enabled four letter word commands is : [[srvr]]
2022-09-14 23:29:40,575 [myid:1] - INFO  [NIOWorkerThread-1:NIOServerCnxn@518] - Processing srvr command from /0:0:0:0:0:0:0:1:47374
2022-09-14 23:29:42,037 [myid:1] - INFO  [QuorumPeer[myid=1](plain=[0:0:0:0:0:0:0:0]:2181)(secure=disabled):QuorumCnxManager@438] - Have smaller server identifier, so dropping the connection: (2, 1)
2022-09-14 23:29:42,038 [myid:1] - INFO  [QuorumPeer[myid=1](plain=[0:0:0:0:0:0:0:0]:2181)(secure=disabled):QuorumCnxManager@438] - Have smaller server identifier, so dropping the connection: (3, 1)
2022-09-14 23:29:42,039 [myid:1] - INFO  [QuorumPeer[myid=1](plain=[0:0:0:0:0:0:0:0]:2181)(secure=disabled):QuorumCnxManager@438] - Have smaller server identifier, so dropping the connection: (4, 1)
2022-09-14 23:29:42,040 [myid:1] - INFO  [QuorumPeer[myid=1](plain=[0:0:0:0:0:0:0:0]:2181)(secure=disabled):QuorumCnxManager@438] - Have smaller server identifier, so dropping the connection: (5, 1)
2022-09-14 23:29:42,040 [myid:1] - INFO  [QuorumPeer[myid=1](plain=[0:0:0:0:0:0:0:0]:2181)(secure=disabled):FastLeaderElection@919] - Notification time out: 12800

Have smaller server identifier, so dropping the connection: (5, 1)
其中这句话意思是,有最小的服务标识,然后就丢弃连接了,特别莫名其妙。
于是百度查看解决方案,得到需要按照 从小到大顺序依次重启节点。卧槽,离谱。
不过据说在3.5版本解决了,所以以后使用时,需要注意使用高版本的了。

标签:INFO,smaller,14,23,09,29,server,connection,myid
来源: https://www.cnblogs.com/30go/p/16695057.html