Configuring the Zookeeper cluster (in Windows environment)
1. Extract Three zookeeper directories
D:\zookeeper\zookeeper-1
D:\zookeeper\zookeeper-2
D:\zookeeper\zookeeper-3
2. Create a data and log directory under these 3 directories and create a new myID file under the data directory
myID's file contents are: 1, 2, 3
3. Copy the Zoo_sample.cfg file to the Zoo.cfg file under the Conf directory
4. Modify the Zoo.cfg file
# The number of milliseconds of each tick
ticktime=2000
# The number of ticks that 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.
Datadir=d:\\zookeeper\\zookeeper-1\\data
# The directory where the log
Datalogdir=d:\\zookeeper\\zookeeper-1\\log
# The port at which the clients would connect
clientport=2181
#Clusters
server.1=10.10.15.48:2888:3888
server.2=10.10.15.48:2889:3889
server.3=10.10.15.48:2890:3890
Configuring Zookeeper Cluster 11