Configuring Zookeeper Cluster 11

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.