Zookeeper部署、指令
来源:互联网 发布:重庆大学出版社淘宝网 编辑:程序博客网 时间:2024/05/20 04:51
安装包下载
http://www-us.apache.org/dist/zookeeper/zookeeper-3.3.6/
安装(伪集群模式)过程
- 解压:tar -zxvf zookeeper-3.4.5.tar.gz
- 配置文件:在conf目录下删除zoo_sample.cfg文件,创建一个配置文件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 between # sending a request and getting an acknowledgementsyncLimit=5# the directory where the snapshot is stored.dataDir=/home/jiangconglin/zk/data# the port at which the clients will connectclientPort=2187dataLogDir=/home/jiangconglin/zk/dataLogserver.0=127.0.0.1:8880:3387 server.1=127.0.0.1:8881:3388 server.2=127.0.0.1:8882:3389
- 配置文件:创建一个配置文件zoo1.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 between # sending a request and getting an acknowledgementsyncLimit=5# the directory where the snapshot is stored.dataDir=/home/jiangconglin/zk/data1# the port at which the clients will connectclientPort=2188dataLogDir=/home/jiangconglin/zk/dataLog1server.0=127.0.0.1:8880:3387 server.1=127.0.0.1:8881:3388 server.2=127.0.0.1:8882:3389
- 配置文件:创建一个配置文件zoo2.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 between # sending a request and getting an acknowledgementsyncLimit=5# the directory where the snapshot is stored.dataDir=/home/jiangconglin/zk/data2# the port at which the clients will connectclientPort=2189dataLogDir=/home/jiangconglin/zk/dataLog2server.0=127.0.0.1:8880:3387 server.1=127.0.0.1:8881:3388 server.2=127.0.0.1:8882:3389
- 创建myid
在dataDir(/home/jiangconglin/zk/data|1|2)目录创建myid文件
Server0机器的内容为:0
Server1机器的内容为:1
Server2机器的内容为:2 - 创建日志目录
/home/jiangconglin/zk/dataLog
/home/jiangconglin/zk/dataLog1
/home/jiangconglin/zk/dataLog2
阅读全文
0 0
- Zookeeper部署、指令
- 部署Zookeeper
- Zookeeper部署
- zookeeper 部署
- zookeeper部署
- zookeeper部署
- 部署zookeeper
- Zookeeper部署
- Zookeeper部署
- zookeeper部署
- solr中Zookeeper指令
- ZooKeeper常用指令集
- zookeeper常用指令
- ZooKeeper运维指令
- storm+kestrel+zookeeper 部署
- [hadoop] Centos部署Zookeeper
- zookeeper的安装部署
- zookeeper安装部署
- 语义分割
- mybatis做like模糊查询
- IOS Plist文件操作之写入/读取/删除
- MY_Swift_元组(tuples)最佳代码实战
- 如何用数据来做渠道效果的分析
- Zookeeper部署、指令
- VC编译时netfw.h找不到--xpsdk安装的解决方法
- 实习日志-4
- 1001. Alphacode
- Unity麻将客户端开发中 座位排序
- MTKLOG分析笔记
- 自定义TextView属性和设置TextView属性
- 面试题---从尾到头打印链表
- 设计师要扮演的4个角色