当前位置:   article > 正文

解决Caused by: org.apache.zookeeper.KeeperException$UnimplementedException: KeeperErrorCode = Unimplem

org.apache.zookeeper.keeperexception$unimplementedexception: keepererrorcode

springcloud整合zookeeper报错

Caused by: org.apache.zookeeper.KeeperException$UnimplementedException: KeeperErrorCode = Unimplemented for /services/cloud-order-service/250369e7-e18d-4103-8814-8aa23de9bf0d

报错原因是因为:

服务器zookeeper与springcloud的zookeeper版本不一致

方法:移除springcloud包下的zookeeper,指定自己zookeeper版本

  1. <dependency>
  2. <groupId>org.springframework.cloud</groupId>
  3. <artifactId>spring-cloud-starter-zookeeper-discovery</artifactId>
  4. <exclusions>
  5. <exclusion>
  6. <groupId>org.apache.zookeeper</groupId>
  7. <artifactId>zookeeper</artifactId>
  8. </exclusion>
  9. </exclusions>
  10. </dependency>
  11. <dependency>
  12. <groupId>org.apache.zookeeper</groupId>
  13. <artifactId>zookeeper</artifactId>
  14. <version>3.4.9</version>
  15. </dependency>

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/不正经/article/detail/386348
推荐阅读
相关标签
  

闽ICP备14008679号