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
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=:
dataDir=/var/lib/zookeeper/data