Zookeeper命令白名单问题

目录

报错

1
2
3
4
5
#执行以下命令时报错
echo ruok | nc localhost 2181

ruok is not executed because it is not in the whitelist.
#这表示 zookeeper 四字命令没有在白名单里导致。

解决

1
2
3
4
5
6
vim /data/zookeeper/conf/zoo.cfg
......
4lw.commands.whitelist=*
#这代表允许使用所以命令
4lw.commands.whitelist=mntr
#代表值允许使用 mntr 命令

Buy me a coffee
支付宝
微信
0%