码迷,mamicode.com
首页 > 其他好文 > 详细

zookeeper 常用命令及znode简介

时间:2018-08-20 12:27:03      阅读:192      评论:0      收藏:0      [点我收藏+]

标签:zkCli.sh   cli   unknown   socket   send   main   tin   Nid   cte   

1. 进入zookeeper 安装目录下的bin目录, 运行脚本, ip + clientPort (这里注意, clientPort是在zoo.cfg文件里边的一个配置, 而不是 server.1=168.72.230.27:2888:3888 这种server配置里边的端口)  

./zkCli.sh -server 168.72.230.27:2181

Welcome to ZooKeeper!
2018-08-19 23:50:08,320 [myid:] - INFO [main-SendThread(168.72.230.27:2181):ClientCnxn$SendThread@1032] - Opening socket connection to server 168.72.230.27/168.72.230.27:2181. Will not attempt to authenticate using SASL (unknown error)
JLine support is enabled
2018-08-19 23:50:08,412 [myid:] - INFO [main-SendThread(168.72.230.27:2181):ClientCnxn$SendThread@876] - Socket connection established to 168.72.230.27/168.72.230.27:2181, initiating session
2018-08-19 23:50:08,423 [myid:] - INFO [main-SendThread(168.72.230.27:2181):ClientCnxn$SendThread@1299] - Session establishment complete on server 168.72.230.27/168.72.230.27:2181, sessionid = 0x16545f46d6f0028, negotiated timeout = 30000

WATCHER::

WatchedEvent state:SyncConnected type:None path:null
[zk: 168.72.230.27:2181(CONNECTED) 0]

2. 

zookeeper 常用命令及znode简介

标签:zkCli.sh   cli   unknown   socket   send   main   tin   Nid   cte   

原文地址:https://www.cnblogs.com/hermanlife/p/9504797.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!