- 问题:
安装好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
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.
网友评论