Install hbase cluster (cdh5.0.2) in the form of tarball -- how to configure zookeeper in the distributed Cluster

Source: Internet
Author: User

For cluster installation overview, see here

Zookeeper Configuration

1. Add ZK path settings to/etc/profile. See the background description above.

2. Go ~ /ZK/conf directory, copy zoo_sample.cfg to zoo. cfg

Vim zoo. conf

Ticktime = 2000 initlimit = 10 synclimit = 5 datadir =/home/hadoop/HDFS/ZK/datadatalogdir =/home/hadoop/HDFS/ZK/logclientport = 2181server. 21 = zk1: 2888: 3888server. 22 = ZK2: 2888: 3888server. 23 = zk3: 2888: 3888

Make sure to create ~ /HDFS/ZK/data and log directories. In the data directory, You need to manually create a myid file with numbers corresponding to X in server. X.

Start zookeeper and run the following command on each ZK node:

Zkserver. Sh start

View the zookeeper status and use

Zkserver. Sh status

If any problem occurs, you can start zookeeper the day before yesterday and find the problem by searching the console output:

Zkserver. Sh start-foreground

 

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.