![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Zookeeper
Pansanday
Talk is cheap, go through my blog.
展开
-
Windows/Mac安装zookeeper
1. 下载页面: http://www.apache.org/dyn/closer.cgi/zookeeper/2. 解压下载的压缩包: zookeeper-3.4.10.tar (或zookeeper-3.4.10.tar.gz), 放置在期望的目录, 譬如: C:\Coding\zookeeper-3.4.103. 修改配置 进入conf目录, 将zoo_sample.cfg复制一份, 起名...原创 2017-06-12 11:49:50 · 352 阅读 · 0 评论 -
zookeeper 简单的使用命令
1. 客户端连接$ zkCli -server 127.0.0.1:2181Connecting to 127.0.0.1:2181Welcome to ZooKeeper!JLine support is enabledWATCHER::WatchedEvent state:SyncConnected type:None path:null[zk: 127.0.0.1:2181(...原创 2018-05-27 16:23:30 · 336 阅读 · 0 评论 -
zookeeper 本地配置多个节点
1. zoo.cfg配置文件如下:# The number of milliseconds of each ticktickTime=2000# The number of ticks that the initial # synchronization phase can takeinitLimit=10# The number of ticks that can pass betwe...原创 2018-05-27 22:17:30 · 5273 阅读 · 0 评论 -
查看zookeeper的二进制日志文件
今天查看文件时,发现几个日志文件,在Finder中查看时,发现是zookeeper的日志文件。用sublime text打开发现这些日志文件都是二进制数据,那该如何查看内容呢?方法一:使用命令行java -cp /usr/local/Cellar/zookeeper/3.4.10/libexec/zookeeper-3.4.10.jar:/usr/local/Cellar/zookeeper/3....原创 2018-06-25 16:42:27 · 1840 阅读 · 1 评论