问题

curator从2.12.0升级到5.2.0
zookeeper被升级到3.6.3了,放到服务器运行项目报错:

Unable to read additional data from server sessionid 0x101100ff7f2000a, likely server has closed socket
或者
KeeperException$UnimplementedException: KeeperErrorCode = Unimplemented for

原因

当升级curator5.x后,如果你使用的zookeeper(非jar包,实际运行的zookeeper)版本大于3.5.x,那么没有任何问题。
如果使用的小于3.4.x,需要排除zookeeper包。

解决

所以我最后升级了zookeeper(非jar包,实际运行的zookeeper)到3.6.3版本

参考:https://blog.csdn.net/sgrrmswtvt/article/details/81129342

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐