用电报运行zookeeper继续出现以下错误:
[2021-04-05 15:00:58,881] INFO Refusing session request for client /0:0:0:0:0:0:0:1:59376 as it has seen zxid 0x124 our last zxid is 0x52 client must try another server (org.apache.zookeeper.server.ZooKeeperServer)
[2021-04-05 15:01:00,346] INFO Refusing session request for client /0:0:0:0:0:0:0:1:59378 as it has seen zxid 0x124 our last zxid is 0x52 client must try another server (org.apache.zookeeper.server.ZooKeeperServer)
[2021-04-05 15:01:02,178] INFO Refusing session request for client /0:0:0:0:0:0:0:1:59380 as it has seen zxid 0x124 our last zxid is 0x52 client must try another server (org.apache.zookeeper.server.ZooKeeperServer)
[2021-04-05 15:01:03,362] INFO Refusing session request for client /0:0:0:0:0:0:0:1:59382 as it has seen zxid 0x124 our last zxid is 0x52 client must try another server (org.apache.zookeeper.server.ZooKeeperServer)
[2021-04-05 15:01:04,658] INFO Refusing session request for client /127.0.0.1:57084 as it has seen zxid 0x124 our last zxid is 0x52 client must try another server (org.apache.zookeeper.server.ZooKeeperServer)
[2021-04-05 15:01:06,329] INFO Refusing session request for client /127.0.0.1:57086 as it has seen zxid 0x124 our last zxid is 0x52 client must try another server (org.apache.zookeeper.server.ZooKeeperServer)
[2021-04-05 15:01:07,751] INFO Refusing session request for client /0:0:0:0:0:0:0:1:59388 as it has seen zxid 0x124 our last zxid is 0x52 client must try another server (org.apache.zookeeper.server.ZooKeeperServer)
[2021-04-05 15:01:09,174] INFO Refusing session request for client /127.0.0.1:57090 as it has seen zxid 0x124 our last zxid is 0x52 client must try another server (org.apache.zookeeper.server.ZooKeeperServer)
[2021-04-05 15:01:10,645] INFO Refusing session request for client /127.0.0.1:57092 as it has seen zxid 0x124 our last zxid is 0x52 client must try another server (org.apache.zookeeper.server.ZooKeeperServer)
[2021-04-05 15:01:12,682] INFO Refusing session request for client /127.0.0.1:57094 as it has seen zxid 0x124 our last zxid is 0x52 client must try another server (org.apache.zookeeper.server.ZooKeeperServer)
[2021-04-05 15:01:14,216] INFO Refusing session request for client /127.0.0.1:57096 as it has seen zxid 0x124 our last zxid is 0x52 client must try another server (org.apache.zookeeper.server.ZooKeeperServer)
我也有同样的问题。我最终通过终止我拥有的所有卡夫卡客户端来解决这个问题。不仅是容器,还有 UI。我正在使用Conduktor。
尝试重新启动客户端服务。我遇到了同样的问题,并且能够通过重新启动尝试连接到 Zookeeper 的 docker 容器来解决。
此错误的原因是您的客户端正在尝试连接它从上一个 Zookeeper 会话中存储的事务 ID,并且当 Zookeeper 关闭并恢复时,它会从较低的事务 ID 开始。