KeeperErrorCode = Unimplemented for /service 错误

本文介绍了在使用Curator客户端操作Zookeeper时遇到的版本兼容性问题。具体表现为Curator 3.2.0版本与Zookeeper 3.4.8版本不兼容。根据Curator官方文档说明,Curator 2.x.x版本支持Zookeeper 3.4.x及3.5.x版本,而Curator 3.x.x仅支持Zookeeper 3.5.x版本。解决此问题的方法是将Curator版本回退至2.x.x系列。

使用Curator时报错,原因是因为版本问题

zookeeper版本:zookeeper-3.4.8

cuartor版本:3.2.0

看Curator官网的声明:

地址:http://curator.apache.org/

The are currently two released versions of Curator, 2.x.x and 3.x.x:

  • Curator 2.x.x - compatible with both ZooKeeper 3.4.x and ZooKeeper 3.5.x
  • Curator 3.x.x - compatible only with ZooKeeper 3.5.x and includes support for new features such as dynamic reconfiguration, etc.
版本不匹配的问题,我这里是使用的curator版本过高,使用2.xx就没有问题了。


评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值