Zookeeper several pits in the environment building [Error contacting service. Analysis and solution of It is probably not running]

Source: Internet
Author: User

Zookeeper Introduction

About ZK's introduction, ZK's Paxos algorithm, online already have the great God in writing,

This paper mainly writes about some of the most likely pits I have encountered during the construction process.

zookeeper The Pit in the deploymentPit One

Error contacting service. It is probably not running

When you are finished configuring Zookeeper after cluster , Three Nodes , start each of the three nodes as follows :

[email protected] bin]# zkserver.sh Start

JMX enabled by default

Using config:/usr/local/zk/bin/. /conf/zoo.cfg

Starting zookeeper ... STARTED

in the View Zookeeper status is encountered

[Email protected] bin]# zkserver.sh status

JMX enabled by default

Using config:/usr/local/zk/bin/. /conf/zoo.cfg

Error contacting service. It is probably not running.

and the other two nodes are actually normal . ;

analyze the cause and resolve :

One of the reasons

The reason for this is the editing zoo.cfg configuration file, you specify a Log output directory, but it is not created.

Therefore, it needs to be created according to the directory specified inside.

Mkdir/tmp/zookeeper/log

The second reason

Final Check configurationzoo.cfgconfiguration discovery is that the hostname of the node is incorrectly written;stop three nodes firstZookeeperService,modify nodes on azoo.cfgconfiguration file,at the start of each ,results show Normal;


The third reason

When configuring the cluster, the myID file in the data directory is incorrectly written and modified to the correct value.


Ps:zk class installation process, if the error, be sure to put the status of the errors posted, other information is not easy to find the answer.


Zookeeper several pits in the environment building [Error contacting service. Analysis and solution of It is probably not running]

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.