前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >ZooKeeper stat is not in whitelist

ZooKeeper stat is not in whitelist

作者头像
sparkle123
发布2019-07-28 14:05:18
1.1K0
发布2019-07-28 14:05:18
举报
  • 问题: 安装好ZooKeeper3.5.5后,执行telnet 127.0.0.1 2181,报错:
代码语言:javascript
复制
stat is not in whitelist
  • 解决方法: cd ~/apps/zookeeper-3.5.5/bin 添加如下参数:
代码语言:javascript
复制
# 添加者:zhangx'x@xx.cn 20190726 begin
ZOOMAIN="-Dzookeeper.4lw.commands.whitelist=* ${ZOOMAIN}"
# 添加者:zhangxx@xx.cn 20190726 end

image.png

  • 再次telnet下,正常了。
代码语言:javascript
复制
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
stat
Zookeeper version: 3.5.5-390fe37ea45dee01bf87dc1c042b5e3dcce88653, built on 05/03/2019 12:07 GMT
Clients:
 /172.16.2.64:32850[1](queued=0,recved=167,sent=167)
 /127.0.0.1:36850[0](queued=0,recved=1,sent=0)

Latency min/avg/max: 0/0/1
Received: 170
Sent: 169
Connections: 2
Outstanding: 0
Zxid: 0x100000007
Mode: follower
Node count: 5
Connection closed by foreign host.
本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2019.07.27 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档