2019-11-01

2019-11-01  本文已影响0人  大江哥66

1.curator连接zookeeper遇到 org.apache.zookeeper.KeeperException$UnimplementedException: KeeperErrorCode = Unimplemented for "/{path}"

版本:

curator: 4.2.0
zookeeper:3.4.13

原因:
查阅官网给出版本不匹配问题:
http://curator.apache.org/zk-compatibility.html

官方文档 本地代码连接容器中zookeeper报错

解决办法:

pom文件

<dependency>

<groupId>org.apache.zookeeper</groupId>

<artifactId>zookeeper</artifactId>

<version>3.4.13</version>

</dependency>

<dependency>

<groupId>org.apache.curator</groupId>

<artifactId>curator-recipes</artifactId>

<version>4.0.0</version>

<exclusions>

<exclusion>

            <groupId>org.apache.zookeeper</groupId>

<artifactId>zookeeper</artifactId>

</exclusion>

</exclusions>

</dependency>



IDE中curator改为4.0.0版本;去除默认zookeeper3.5.3配置;可以正常使用


上一篇 下一篇

猜你喜欢

热点阅读