1.环境

spring-boot 2.1.3 依赖项:spring-cloud-starter-zookeeper-discovery 版本2.1.1

使用的zookeeper3.4.11

代码如下:

package com.example.demo;import java.net.InetAddress;
import java.net.UnknownHostException;import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;@Configuration
@EnableAutoConfiguration
@EnableDiscoveryClient
@RestController
public class ZkDiscoveryApplication {@RequestMapping("/")@ResponseBodyString home() {String message = "Hello World from Greeting Microservice located at %s!";try {String address = InetAddress.getLocalHost().getHostAddress();message = String.format(message, address);} catch (UnknownHostException e) {message = String.format(message, "Unknown Host");}return message;}

2.启动spring boot项目报错

Thrown "KeeperErrorCode = Unimplemented for /services" exception

3.原因

Curator 和zookeeper的版本不一致

4.解决方式

zookeeper升级到最新的5.x后异常消失

转载于:https://www.cnblogs.com/davidwang456/p/10514637.html

Thrown KeeperErrorCode = Unimplemented for /services exception相关推荐

  1. 【spring cloud zookeeper】KeeperErrorCode = Unimplemented for

    KeeperErrorCode = Unimplemented for 错误 Spring cloud 2.0 zookeeper 3.4.10 curator 4.0.1 错误 Caused by: ...

  2. 【ZK-curator使用异常】KeeperErrorCode = Unimplemented for /***

    [ZK-curator使用异常]KeeperErrorCode = Unimplemented for /*** 参考文章: (1)[ZK-curator使用异常]KeeperErrorCode = ...

  3. KeeperErrorCode = Unimplemented for /test

    使用Curator时报错,原因是因为版本问题 zookeeper版本:zookeeper-3.4.8 cuartor版本:3.2.0 看Curator官网的声明: 地址:http://curator. ...

  4. 解决org.apache.zookeeper.KeeperException$UnimplementedException:KeeperErrorCode = Unimplemented for /S

    主要原因是SpringCloud hoxton整合Zookerper3.5.3-beta作为注册中心的时候,与服务器版本不一致导致的,解决办法: 这是我的Maven依赖: <dependency ...

  5. zookeeper服务发现实战及原理--spring-cloud-zookeeper源码分析

    1.为什么要服务发现? 服务实例的网络位置都是动态分配的.由于扩展.失败和升级,服务实例会经常动态改变,因此,客户端代码需要使用更加复杂的服务发现机制. 2.常见的服务发现开源组件 etcd-用于共享 ...

  6. Spring Cloud ZooKeeper Discovery Client Not Register on ZooKeeper when using SpringBootServletInitia

    报错 2022-01-04 16:04:05.773 ERROR 26981 --- [nStateManager-0] org.apache.curator.x.discovery.details. ...

  7. 关于华为OBS下载指定资源报错com.obs.services.internal.ServiceException: Request Error. GET解决办法

    华为OBS下载指定资源报错,com.obs.services.internal.ServiceException: Request Error,ResponseCode: 404, ResponseS ...

  8. C#学习常用类(1003)---Timer类(System.Timers.Timer)

    Timer类: 在设定的间隔之后生成事件,带有生成重复事件的选项. 若要浏览此类型的 .NET Framework 源代码,请参阅引用源. 命名空间:                   System ...

  9. JNI(4) JNI Functions

    JNI Functions 接口函数表 每一个函数通过JNIEnv 参数在固定的偏移位置找到. JNIEnv是一个存储了所有JNI方法的指针.定义如下: typedef const struct JN ...

最新文章

  1. 固态硬盘与QLC闪存
  2. Linux中如何使用mysql和php_hi 感恩节——Linux基础教程之mysql和php
  3. ITK:并排平铺图像
  4. matlab图像处理函数大全
  5. for..in..遍历循环的简写模式
  6. 工业交换机常用术语及常见知识点汇总
  7. IT已成为最疯狂的加班行业,没有之一
  8. App Store评论优化,让你的APP评论上涨
  9. 拆解老式电饭锅限温器并验证其原理
  10. 月结6 - AR和AP重分类(Regroup)[FAGLF101/OBBU/OBBV]
  11. 酒店(宾馆)客房管理系统
  12. 地方政府留言板文本数据
  13. 633 - Find the Duplicate Number
  14. matlab 数组索引必须为正整数或逻辑值
  15. Hadoop安装搭建伪分布式教程(全面)吐血整理
  16. VSCode 安装Flutter 教程
  17. 扶桑号战列舰【RMQ+分治】
  18. linux 输入法框架,常用输入法框架简介 - 微信公众号:算法与编程之美 - OSCHINA - 中文开源技术交流社区...
  19. B2B电子商务策略[在2022年发展您的业务]
  20. 制作庆祝元宵节html5,庆祝元宵节活动方案

热门文章

  1. tcp/ip 协议栈Linux源码分析五 IPv6分片报文重组分析一
  2. Java synchronized 与 lock (Reetrantlock)锁性能比较
  3. 噬血代码进不了游戏_玩家认可,二次元魂类游戏,《噬血代码》在三个方面做出了差异化...
  4. 计算机 双 ip地址,win7双ip怎么设置_Win7电脑如何设置双IP地址
  5. 将长度为n的绳子分为m段求各段乘积的最大值
  6. 支架预压弹性变形值计算_桥梁支架的预压方法与流程
  7. android 之ListView分页效果以及从网络上加载数据一系列的综合运用
  8. C++基类和派生类的构造函数(二)
  9. N叉树的深度 python实现
  10. 廖的python教程_学廖老师的python教程想到的