zook报错启动报错:

2017-09-25 18:33:46,913 - INFO  [main-SendThread(localhost:2181):ClientCnxn$SendThread@1183] - Unable to read additional data from server sessionid 0x0, likely server has closed socket, closing socket connection and attempting reconnect

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

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

问题排查:

 配置的超时时间太短,Zookeeper没有读完Consumer的数据,连接就被Consumer断开了!

  其中有一个进程启动后不久就自己挂掉了。

查看发现

   zook2/data/myid中的值与zook2/conf/zoo.cfg中的值不一样

server.1=localhost:2287:3387

server.2=localhost:2288:3388

server.3=localhost:2289:3389

~~~~~~~~~~~~~~~~~~~

配置为一样之后,问题解决。