我们有3 台 kafka机器和3 台 Zookeeper服务器的 hadoop 集群
hadoop 版本 - 2.6.4 (HORTONWORKS)
在 zookeeper 日志下 ( /var/log/zookper )
我们看到了数百万条警告消息,例如:
2019-06-26 10:48:45,675 [myid:1] - WARN [NIOServerCxn.Factory 0.000.0.0/0.0.0.0:2181:NIOServerCnxn@357] - caught end of stream exception
EndOfStreamException: Unable to read additional data from client sessionid 0x16b8e15a80ca681, likely client has closed socket
at org.apache.zookeeper.server.NIOServerCnxn.doIO(NIOServerCnxn.java:230)
at org.apache.zookeeper.server.NIOServerCnxnFactory.run(NIOServerCnxnFactory.java:208)
at java.lang.Thread.run(Thread.java:745)
此消息的含义是什么:
caught end of stream exception EndOfStreamException
Unable to read additional data from client sessionid
真正的问题是关于卡夫卡机器
- 我们面临领导者不平衡的问题,Kafka 主题分区最终得到领导者 -1