使用zookeeper報錯 stat is not executed because it is not in the whitelist. envi is not executed because it is not in the whitelist.


在使用四字命令或者zk ui界面查看zookeeper集群時,出現如下提示:

stat is not executed because it is not in the whitelist.
envi is not executed because it is not in the whitelist.

解決辦法

# nc命令需要安裝其他軟件
yum install nmap-ncat

# envi命令執行報錯提示:envi is not executed because it is not in the whitelist.
# 解決辦法 修改啟動指令 zkServer.sh ,往里面添加 :ZOOMAIN="-Dzookeeper.4lw.commands.whitelist=* ${ZOOMAIN}"

else
    echo "JMX disabled by user request" >&2
    ZOOMAIN="org.apache.zookeeper.server.quorum.QuorumPeerMain" # 注意找到這個信息
fi

# 如果不想添加在這里,注意位置和賦值的順序
ZOOMAIN="-Dzookeeper.4lw.commands.whitelist=* ${ZOOMAIN}"

然后重啟zookeeper


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM