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

DevOps Zookeeper评论1,357字数 1061阅读3分32秒阅读模式

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

[centos@us-prod-sre-zookeeper-1 bin]$ echo conf | nc 10.0.3.113 2181
conf is not executed because it is not in the whitelist.

解决报错

[centos@us-prod-sre-zookeeper-1 conf]$ vim zoo.cfg
4lw.commands.whitelist=*
#这代表允许使用所以命令

重启服务

[centos@us-prod-sre-zookeeper-1 bin]$ ./zkServer.sh restart
ZooKeeper JMX enabled by default
Using config: /data/app/zookeeper/bin/../conf/zoo.cfg
ZooKeeper JMX enabled by default
Using config: /data/app/zookeeper/bin/../conf/zoo.cfg
Stopping zookeeper ... STOPPED
ZooKeeper JMX enabled by default
Using config: /data/app/zookeeper/bin/../conf/zoo.cfg
Starting zookeeper ... STARTED

验证

[centos@us-prod-sre-zookeeper-1 bin]$ echo conf | nc 10.0.3.113 2181
clientPort=2181
secureClientPort=-1
dataDir=/data/zookeeper/version-2
dataDirSize=134218321
dataLogDir=/data/zookeeper/version-2
dataLogSize=134218321
tickTime=2000
maxClientCnxns=60
minSessionTimeout=4000
maxSessionTimeout=40000
serverId=1
initLimit=10
syncLimit=5
electionAlg=3
electionPort=3888
quorumPort=2888
peerType=0
membership: 
server.1=10.0.3.113:2888:3888:participant
server.2=10.0.3.121:2888:3888:participant
server.3=10.0.3.217:2888:3888:participant

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

继续阅读
DevOps
  • 本文由 发表于 2022年8月3日 16:05:00
  • 除非特殊声明,本站文章均为原创,转载请务必保留本文链接
Zookeeper3.8集群 Zookeeper

Zookeeper3.8集群

安装jdk 安装文档 集群规划 zookeper集群至少需要3台服务器,并且强烈建议使用奇数个服务器。因为zookeeper通过半数机制来判断整个集群是否可用,也就是说集群中有一半以...
Zookeeper3.5.7集群部署 Zookeeper

Zookeeper3.5.7集群部署

简述 ZooKeeper 是 Apache 的一个顶级项目,为分布式应用提供高效、高可用的分布式协调服务。 ZooKeeper本质上是一个分布式的小文件存储系统。提供类似于文件系统目录树方式的...
评论  0  访客  0

发表评论