zk的四字命令linux上使用如下命令报错:
[root@bigdata1 conf]# echo mntr | nc bigdata1 2181
mntr is not executed because it is not in the whitelist.
解决:
在zookeeper的zoo.cfg中添加如下一行代码并保存退出
[root@bigdata1 conf]# vim zoo.cfg
#开启四字命令
4lw.commands.whitelist=*
然后重启zookeeper即可:
zkServer.sh restart