Zookeeper distributed Deployment (ZOOKEEPER-3.4.7.TAR.GZ)

Source: Internet
Author: User

1. Upload, Unzip zookeeper
TAR-ZXVF zookeeper-3.4.7.tar.gz

2./home/hello/app/zookeeper-3.4.7/conf Adding a zoo.cfg configuration file
MV Zoo_sample.cfg Zoo.cfg

3./home/hello/app/zookeeper-3.4.7 Creating the Zdata directory

4. Modify the configuration file (zoo.cfg)
A.datadir=/home/hello/app/zookeeper-3.4.7/zdata
b.server.1=node1:2888:3888
server.2=node2:2888:3888
server.3=node3:2888:3888

5./home/hello/app/zookeeper-3.4.7/zdata Creating a myID file

6. Copy the configured zookeeper-3.4.7 to the other nodes
Scp-r zookeeper-3.4.7/[Email protected]:/home/hello/app/
Scp-r zookeeper-3.4.7/[Email protected]:/home/hello/app/

7. Be sure to modify the contents of myID for server on Node1,node2,node3. N in N

8. Start the node on NODE1,NODE2,NODE3, respectively
A. Start the node./zkserver.sh Start
B. View the node status./ZKSERVER.SH Status
B. View Help./zkserver.sh--help

Zookeeper distributed Deployment (ZOOKEEPER-3.4.7.TAR.GZ)

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.