问题:
Unable to read additional data from client sessionid 0x0, likely client has closed socket
org.apache.storm.shade.org.apache.zookeeper.server.ServerCnxn$EndOfStreamException: Unable to read additional data from client sessionid 0x1655d0a3af10013, likely client has closed socket
at org.apache.storm.shade.org.apache.zookeeper.server.NIOServerCnxn.doIO(NIOServerCnxn.java:228) [storm-core-1.1.0.jar:1.1.0]
at org.apache.storm.shade.org.apache.zookeeper.server.NIOServerCnxnFactory.run(NIOServerCnxnFactory.java:208) [storm-core-1.1.0.jar:1.1.0]
at java.lang.Thread.run(Thread.java:745) [?:1.7.0_80]
问题的原因在于,配置的超时时间太短,Zookeeper没有读完Consumer的数据,连接就被Consumer断开了!
解决方法 :
在config/server.properties文件中将超时连接属性的值调大一点,如下 :
zookeeper.session.timeout.ms=500000