zookeeper集群安装与配置
来源:互联网 发布:虚无世界2java路径 编辑:程序博客网 时间:2024/05/16 17:52
# 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=/home/stat/zookeeper-3.4.6/data
dataLogDir=/home/stat/zookeeper-3.4.6/logs
# the port at which the clients will connect
clientPort=2181
# the maximum number of client connections.
# increase this if you need to handle more clients
#maxClientCnxns=60
#
# Be sure to read the maintenance section of the
# administrator guide before turning on autopurge.
#
# http://zookeeper.apache.org/doc/current/zookeeperAdmin.html#sc_maintenance
#
# The number of snapshots to retain in dataDir
#autopurge.snapRetainCount=3
# Purge task interval in hours
# Set to "0" to disable auto purge feature
#autopurge.purgeInterval=1
server.0=10.189.122.207:2888:3888
server.1=10.189.122.208:2888:3888
server.2=10.189.122.213:2888:3888
设置文件如上所示,通过bin/zkServer.sh命令启动zk服务,用法如下
注意:有时候zk会启动失败,可以查看对应的dataDir下是否成功新建文件myid,其内容即为zoo.cfg中的serverid
0 0
- zookeeper集群安装与配置
- zookeeper集群安装与配置
- zookeeper安装与集群配置
- ZooKeeper集群环境安装与配置
- ZooKeeper集群环境安装与配置
- ZooKeeper集群环境安装与配置
- ZooKeeper 集群的安装与配置
- Zookeeper分布式集群的安装与配置
- ZooKeeper集群环境安装与配置
- ZooKeeper集群环境的配置与安装
- zookeeper(单机/集群)安装与配置
- Zookeeper分布式集群的安装与配置
- Zookeeper集群的安装与配置
- zookeeper集群安装配置
- ZooKeeper集群安装配置
- zookeeper集群安装配置
- zookeeper集群配置安装
- zookeeper集群安装配置
- kafka集群配置与安装
- 浅谈CSRF攻击
- LeetCode算法题目:Remove Duplicates from Sorted Array
- Android中vector用法详解
- php str_replace 字符串替换
- zookeeper集群安装与配置
- Android Studio报错Error:(1, 0) Plugin with id 'com.android.application' not found
- Form表单ajax提交数据不跳转
- Accelerated C++学习笔记1 unit0
- superset开发环境搭建
- ccf-压缩编码
- Linux Kernel设备驱动模型之 struct device_type
- 【Goodbye2015】Codeforces 611D New Year and Ancient Prophecy【Dp+前缀和优化+预处理字符串】好题!好题!
- 每一个程序员都应该知道的高并发处理技巧、创业公司如何解决高并发问题、互联网高并发问题解决思路、caoz大神多年经验总结分享