美文网首页
ZooKeeper stat is not in whiteli

ZooKeeper stat is not in whiteli

作者: sparkle123 | 来源:发表于2019-07-27 15:03 被阅读0次
  • 问题:
    安装好ZooKeeper3.5.5后,执行telnet 127.0.0.1 2181,报错:
stat is not in whitelist
  • 解决方法:
    cd ~/apps/zookeeper-3.5.5/bin
    添加如下参数:
# 添加者:zhangx'x@xx.cn 20190726 begin
ZOOMAIN="-Dzookeeper.4lw.commands.whitelist=* ${ZOOMAIN}"
# 添加者:zhangxx@xx.cn 20190726 end
image.png
  • 再次telnet下,正常了。
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
stat
Zookeeper version: 3.5.5-390fe37ea45dee01bf87dc1c042b5e3dcce88653, built on 05/03/2019 12:07 GMT
Clients:
 /172.16.2.64:32850[1](queued=0,recved=167,sent=167)
 /127.0.0.1:36850[0](queued=0,recved=1,sent=0)

Latency min/avg/max: 0/0/1
Received: 170
Sent: 169
Connections: 2
Outstanding: 0
Zxid: 0x100000007
Mode: follower
Node count: 5
Connection closed by foreign host.

相关文章

网友评论

      本文标题:ZooKeeper stat is not in whiteli

      本文链接:https://www.haomeiwen.com/subject/ugkerctx.html