Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Need to create zookeeper myid files for replicated mode #23

@nephomaniac

Description

@nephomaniac

Need to add the server id found in the 'myid' file found in the defined 'dataDir'. The server id is a single digit that matches the server.=<server_address>: syntax in /etc/zoo.cfg
Example of how to create the myid file if the localhost was server.1=:

[root@169.254.1.1]# echo 1  >  /var/lib/zookeeper/data/myid

[root@169.254.1.2]# echo 2  >  /var/lib/zookeeper/data/myid

[root@169.254.1.3]# echo 3  >  /var/lib/zookeeper/data/myid

dataDir=/var/lib/zookeeper/data

[root@h-10 calyptos]# cat /etc/zookeeper/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=/var/lib/zookeeper/data
# the port at which the clients will connect
clientPort=2181
#
# 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.1=169.254.1.1:2888:3888
server.2=169.254.1.2:2888:3888
server.3=169.254.1.3:2888:3888

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions