问题描述
在启动zookeeper_exporter时,提示mntr is not executed because it is not in the whitelist ,即mntr命令不在白名单中。
mntr is not executed because it is not in the whitelist
问题解决
1.需要把mntr命令添加到白名单中
vim /data/zookeeper/conf/zoo.cfg
在配置文件最后加上
4lw.commands.whitelist=*
#这代表允许使用所以命令
和
4lw.commands.whitelist=mntr
#代表值允许使用 mntr 命令