Zookeeper学习记录

Posted 风过无痕521

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Zookeeper学习记录相关的知识,希望对你有一定的参考价值。

前置条件:jdk

安装模式:单机,伪集群,集群

 

一、下载

官网下载地址

二、解压

 

三、配置

1、新建以下目录:data,log

2、conf 目录中配置 zoo.cfg 文件

# The number of milliseconds of each tick
tickTime=2000
# The number of ticks that the initial 
# synchronization phase can take
initLimit=10
# The number of ticks that can pass between 
# sending a request and getting an acknowledgement
syncLimit=5
# the directory where the snapshot is stored.
# do not use /tmp for storage, /tmp here is just 
# example sakes.
dataDir=D:\\\\Software\\\\Java\\\\apache-zookeeper-3.6.1-bin\\\\data
dataLogDir=D:\\\\Software\\\\Java\\\\apache-zookeeper-3.6.1-bin\\\\log
# the port at which the clients will connect
clientPort=2181
admin.serverPort=8888

 

四、启动

bin 目录中服务端:zkServer.cmd

 

bin 目录中客户端:zkCli.cmd

 

五、UI查看器

 

六、zkui

zkui 为 zookeeper 提供了一个 web 管理界面,可以对 zookeepr 的节点值进行CRUD操作,同时也提供了安全认证。

github地址:https://github.com/DeemOpen/zkui

下载源码,在 idea 中打开,并启动

默认用户名/密码:admin / manager,可在 config.cfg 中配置

 

 

 

 

参考资料:

Zookeeper 在Windows下的安装过程及测试

Zookeeper查看工具 ZooInspector

ZoopKeeper可视化zkui框架

以上是关于Zookeeper学习记录的主要内容,如果未能解决你的问题,请参考以下文章

ElasticSearch学习问题记录——Invalid shift value in prefixCoded bytes (is encoded value really an INT?)(代码片段

[博学谷学习记录] 超强总结,用心分享 | Zookeeper

python小白学习记录 多线程爬取ts片段

golang代码片段(摘抄)

QT 实用代码片段

CSP核心代码片段记录