Kafka中Zookeeper的稳定版本

原创
半兽人 发表于: 2015-03-10   最后更新时间: 2022-03-08 23:26:51  
{{totalSubscript}} 订阅, 25,825 游览

kafka版本对应的zk版本推荐。

0.8.0、0.8.2.X、0.9.0.X

At LinkedIn, we are running ZooKeeper 3.3.*. Version 3.3.3 has known serious issues regarding ephemeral node deletion and session expirations. After running into those issues in production, we upgraded to 3.3.4 and have been running that smoothly for over a year now.
在LinkedIn,我们正在运行的ZooKeeper是 3.3.*。但是在3.3.3版本已知严重的问题是关于短暂节点的缺失和会话超时。遇到到这些问题在之后,我们升级到3.3.4,现在已运行顺畅了一年多了。

0.10.0.X

The current stable branch is 3.4 and the latest release of that branch is 3.4.6, which is the one ZkClient 0.7 uses. ZkClient is the client layer Kafka uses to interact with ZooKeeper.
目前的稳定分支是3.4,该分支的最新版本是3.4.6,也就是ZkClient 0.7使用的版本。ZkClient是Kafka用来与ZooKeeper交互的客户端层。

0.10.1.X

The current stable branch is 3.4 and the latest release of that branch is 3.4.8, which is the one ZkClient 0.9 uses. ZkClient is the client layer Kafka uses to interact with ZooKeeper.
当前稳定分支为3.4,该分支的最新版本为3.4.8,也就是ZkClient 0.9使用的分支。 ZkClient是Kafka用于与ZooKeeper交互的客户端层。

0.11.0.X、0.11.0.X、1.0.X、1.1.X、2.0.X

The current stable branch is 3.4 and the latest release of that branch is 3.4.9.
当前稳定分支是3.4,该分支的最新版本是3.4.9

2.3.X、2.4.X、2.5.X、2.6.X、2.7.X、2.8.X、2.9.X、3.X

The current stable branch is 3.5. Kafka is regularly updated to include the latest release in the 3.5 series.
当前稳定分支为3.5。kafka会定期更新到3.5系列的最新版本。

更新于 2022-03-08
在线,1小时前登录

5年前

今天打开zookeeper报错, 没在意, 然后就出现了消息没消费就丢失的状况, 我设置的还是手动提交, 没走提交方法, 消息总是丢失, 而且在不开消费者的情况下发送的消息也丢失, zookeeper版本应该是2.12, 官网下载的 kafka_2.12-1.0.1 ,zookeeper 报错信息就一句话

Expiring session 0x16421997e0e000c, timeout of 6000ms exceeded (org.apache.zookeeper.server.ZooKeeperServer)
Processed session termination for sessionid : 0x16421997e0e000c

session 会话超时...然后想起来之前在这看到过, 请问现在我该如何解决这个问题, 终止这个session或者使用新版本的Zookeeper?

-> 5年前

现在每次打开都报这个错..

半兽人 -> 5年前

你的错是跟网络有关,超时了,说明网络不通,检查下你的网络。

查看kafka更多相关的文章或提一个关于kafka的问题,也可以与我们一起分享文章