简体   繁体   English

如何让客户端版本的 Zookeeper 连接到服务器?

[英]How to get the client versions of Zookeeper connected to the server?

We are upgrading the ZK Server and would like to know the version clients are using to connect so we have a better overview which clients need to be upgraded.我们正在升级 ZK 服务器,并想知道客户端用于连接的版本,以便我们更好地了解哪些客户端需要升级。

Is there a way of doing this?有没有办法做到这一点? I tried 'cons' but no luck.我试过“缺点”,但没有运气。

Thx for any advice .感谢任何建议。

Client versions are added to zookeeper log files when connecting.连接时,客户端版本会添加到 zookeeper 日志文件中。 Considering you have set INFO level on log4j zookeeper configuration, you should observe entries like the following:考虑到您在 log4j zookeeper 配置上设置了 INFO 级别,您应该观察如下条目:

2020-10-13 16:38:01,275 [myid:] - INFO  [main:Environment@98] - Client environment:zookeeper.version=3.6.2--803c7f1a12f85978cb049af5e4ef23bd8b688715, built on 09/04/2020 12:44 GMT                                                            

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM