Zookeeper Cluster construction under CentOS

Source: Internet
Author: User

Zookeeper Cluster construction process:

1, download zookeeper installation package, decompression and installation;

2, under/etc/profile configuration ZOOKEEPER environment variable, add variable $zookeep_home=zookeeper installation directory, and then add $zookeeper_home/bin to $path variable;

3, the Zookeeper installation directory Conf zoo_sample.cfg Save as ZOO.CFG, and modify the relevant configuration information;

4, copy the zoo.cfg files to other servers under the cluster;

5. Create a new myID file in the data directory for each zookeeperzookeeper server, modify the ID value, and the value in the server.id configured in Zoo.cfg is consistent.

6, execute zkserver.sh start service.


Precautions:

After the service starts successfully, you can use JPS to see the zookeeper process Quorumpeermain, but the error contacting service is displayed when you view the state by zdserver.sh status. It is probably not running. " Error, turn off all server firewalls, and view the status successfully.


This article is from the "11475073" blog, please be sure to keep this source http://11485073.blog.51cto.com/11475073/1886739

Zookeeper Cluster construction under CentOS

Related Article

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.