zookeeper报Unable to read additional data from server sessionid 0x0, likely server has closed socket, closing socket connection and attempting reconnect的解决

现象

服务器连不上,kafka报connection refused

测试发现kafka某台node(xx)的问题,登录上去也各种错误,zkServer.sh restart可以完成,但status报连不上。报错比较迷惑人,打开java log看到其他错误:

[myid:3] - INFO  [ListenerThread:[email protected]534] - My election bind port: /yy:3888

java.net.BindException: Cannot assign requested address

...

[myid:3] - WARN  [WorkerSender[myid=3]:[email protected]400] - Cannot open channel to 1 at election address /xx:3888

java.net.ConnectException: Connection refused

其实这个错误可以看出来,出现了xx和yy2个地址,说明它认错了自己

解决方案

从zoo.cfg看下datadir,将下面的myid改成和zoo.cfg里的自己一样的。比如xx是

server.1=xx:2888:3888
server.2=yy:2888:3888
server.3=zz:2888:3888

那么它的myid必须是1

时间: 2024-10-23 07:50:42

zookeeper报Unable to read additional data from server sessionid 0x0, likely server has closed socket, closing socket connection and attempting reconnect的解决的相关文章

Zookeeper:Unable to read additional data from client sessionid 0x00, likely client has closed socket

异常信息: 2018-03-20 23:34:01,887 [myid:99] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:[email protected]] - Accepted socket connection from /10.121.82.229:33749 2018-03-20 23:34:01,887 [myid:99] - WARN [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:[e

【hbase】Unable to read additional data from client sessionid 0x15c92bd1fca0003, likely client has closed socket

启动hbase ,验证出错 Master is initializing 查看zk日志,发现Unable to read additional data from client sessionid 0x15c92bd1fca0003, likely client has closed socket

zook 报错 Unable to read additional data from server sessionid 0x0

zook报错启动报错: 2017-09-25 18:33:46,913 - INFO  [main-SendThread(localhost:2181):[email protected]] - Unable to read additional data from server sessionid 0x0, likely server has closed socket, closing socket connection and attempting reconnect ~~~~~~~~~~

Unable to read additional data from server sessionid 0x0

今天在本机安装了三个zookeeper,分别为server1,server2,server3. tickTime=2000 initLimit=5 syncLimit=2 dataDir=/Users/google/Work/Program/zookeeper/server1/zookeeper-3.4.6/data dataLogDir=/Users/google/Work/Program/zookeeper/server1/zookeeper-3.4.6/logs clientPort=40

zookeeper报错问题

2016-05-23 17:18:11,106 [myid:1] - INFO  [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2182:[email protected]] - Closed socket connection for client /127.0.0.1:11430 (no session established for client) 2016-05-23 17:18:41,751 [myid:1] - INFO  [NIOServerCxn.F

全网最详细的启动zkfc进程时,出现INFO zookeeper.ClientCnxn: Opening socket connection to server***/192.168.80.151:2181. Will not attempt to authenticate using SASL (unknown error)解决办法(图文详解)

不多说,直接上干货! at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361) at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1081) 18/06/16 17:57:01 INFO zookeeper.ClientCnxn: Opening socket connection to server

Unable to verify your data submission错误解决

如果不用Yii2提供的ActiveForm组件生成表单,而是自定义表单,那么当你提交表单的时候就会报这个错误 Unable to verify your data submission 这是因为Web网页访问的时候form表单中会有对应的一个隐藏input:_csrf进行了验证才可以正常进行访问:而非网页访问方式(不通过Web表单)是无法通过csrf验证的. 上述可以通过查看源代码发现有一个name=_csrf的hidden. 可以在所在控制器设置$enableCsrfValidation=fa

xvfb启动PyQt4程序报Unable to load library icui18n错误

xvfb启动PyQt4程序报如下错误: Unable to load library icui18n "Cannot load library icui18n: (libicui18n.so.48: cannot open shared object file: No such file or directory)" 解决方法: sudo apt-get install libicu48 参考:https://forums.virtualbox.org/viewtopic.php?f=

Aandroid Error之 新导入工程报Unable to resolve target 'android-18'和R cannot be resolved

有段时间没有写安卓了,今天导入以前的项目,结果看到控制台打印出了这样一句:Unable to resolve target 'android-18', 解决方法: 项目->属性->Android->Project Build Target 选择android 4.4Target,保存.结果原来报的一大堆错误消失了,只剩一个错误,R cannot be resolved然后点project->clean,如图.结果错误就消失了. Aandroid Error之 新导入工程报Unabl