Unable to read additional data from client sessionid 0x0, likely client has closed socket

问题:

Unable to read additional data from client sessionid 0x0, likely client has closed socket

[2014-11-13 10:28:47,989] INFO Accepted socket connection from /192.168.50.33:2676 (org.apache.zookeeper.server.NIOServerCnxn)
[2014-11-13 10:28:47,989] WARN EndOfStreamException: Unable to read additional data from client sessionid 0x0, likely client has closed socket (org.apache.zookeeper.server.NIOServerCnxn)

问题:

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


解决:

在config/server.properties文件中将超时连接属性的值调大一点,如下:

zookeeper.session.timeout.ms=400000
注:也可以在java代码中设置!

你可能感兴趣的:(Zookeeper连接超时,Kafka常见错误,Storm)