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

Need to create zookeeper myid files for replicated mode #23

Open
nephomaniac opened this issue Oct 20, 2015 · 1 comment
Open

Need to create zookeeper myid files for replicated mode #23

nephomaniac opened this issue Oct 20, 2015 · 1 comment

Comments

@nephomaniac
Copy link
Contributor

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=:

[[email protected]]# echo 1  >  /var/lib/zookeeper/data/myid

[[email protected]]# echo 2  >  /var/lib/zookeeper/data/myid

[[email protected]]# 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

@dmccue
Copy link

dmccue commented Oct 22, 2015

eucalyptus/calyptos#76

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants