KeeperErrorCode = Unimplemented for /test

清疚 2021-09-18 04:50 560阅读 0赞

在使用Curator连接Zookeeper时报错,原因是因为版本问题。

本地环境:
zookeeper版本:zookeeper-3.4.x
cuartor版本:4.0.0

看Curator官网的声明:
地址:
http://curator.apache.org/zk-compatibility.html
在这里插入图片描述
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就没有问题了。

  1. <dependency>
  2. <groupId>org.apache.curator</groupId>
  3. <artifactId>curator-recipes</artifactId>
  4. <version>2.10.0</version>
  5. </dependency>

发表评论

表情:
评论列表 (有 0 条评论,560人围观)

还没有评论,来说两句吧...

相关阅读