zookeeper集群安装与配置

    xiaoxiao2021-03-25  67

    # 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.# do not use /tmp for storage, /tmp here is just # example sakes.dataDir=/home/stat/zookeeper-3.4.6/datadataLogDir=/home/stat/zookeeper-3.4.6/logs# the port at which the clients will connectclientPort=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=1server.0=10.189.122.207:2888:3888server.1=10.189.122.208:2888:3888server.2=10.189.122.213:2888:3888 设置文件如上所示,通过bin/zkServer.sh命令启动zk服务,用法如下 注意:有时候zk会启动失败,可以查看对应的dataDir下是否成功新建文件myid,其内容即为zoo.cfg中的serverid
    转载请注明原文地址: https://ju.6miu.com/read-15516.html

    最新回复(0)