错误:KeeperErrorCode = Unimplemented for /testCurator 2.x.x - compatible with both ZooKeeper 3

文章讲述了在使用Curator时遇到的KeeperErrorCode=Unimplemented错误,原因是Curator的高版本(3.x.x)仅支持ZooKeeper3.5.x,而2.x.x版本则兼容3.4.x和3.5.x。解决方案是降低Curator版本到2.xx以解决版本不匹配的问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

错误:KeeperErrorCode = Unimplemented for /test
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就没有问题了。

ava.lang.IllegalStateException: Failed to register dubbo://192.168.3.111:20880/com.baosight.minmetals.api.repertory.service.CCVEhicleDataQuery?anyhost=true&application=Minmetals-logistics-system-service&background=false&deprecated=false&dispatcher=all&dubbo=2.0.2&dynamic=true&generic=false&interface=com.baosight.minmetals.api.repertory.service.CCVEhicleDataQuery&loadbalance=roundrobin&methods=queryBillSettleD,queryBillSettleM,queryTrackD,queryTrackM,updateBillSettle,updateTransCommission&payload=83886080&pid=11172&release=3.1.11&retries=0&revision=1.0&serialization=hessian2&serialize.check.status=DISABLE&service-name-mapping=true&side=provider&threadpool=cached&threads=1000&timeout=2400000&timestamp=1747977375046&version=1.0 to registry 127.0.0.1:2181, cause: Failed to register dubbo://192.168.3.111:20880/com.baosight.minmetals.api.repertory.service.CCVEhicleDataQuery?anyhost=true&application=Minmetals-logistics-system-service&background=false&deprecated=false&dispatcher=all&dubbo=2.0.2&dynamic=true&generic=false&interface=com.baosight.minmetals.api.repertory.service.CCVEhicleDataQuery&loadbalance=roundrobin&methods=queryBillSettleD,queryBillSettleM,queryTrackD,queryTrackM,updateBillSettle,updateTransCommission&payload=83886080&pid=11172&release=3.1.11&retries=0&revision=1.0&serialization=hessian2&serialize.check.status=DISABLE&service-name-mapping=true&side=provider&threadpool=cached&threads=1000&timeout=2400000&timestamp=1747977375046&version=1.0 to zookeeper zookeeper://127.0.0.1:2181/org.apache.dubbo.registry.RegistryService?application=Minmetals-logistics-system-service&dubbo=2.0.2&file=./xcx-service.properties&interface=org.apache.dubbo.registry.RegistryService&pid=11172&qos.enable=true&release=3.1.11&serialize.check.status=DISABLE, cause: KeeperErrorCode = Unimplemented for /dubbo
最新发布
05-24
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值