HBase does not start, the node/hbase is not in ZooKeeper

Source: Internet
Author: User

The problem is described in detail below:

2016-12-09 15:10:39,160 ERROR [org.apache.hadoop.hbase.client.connectionmanager$hconnectionimplementation]- The node/hbase is not in ZooKeeper. It should has been written by the master. Check the value configured in ' Zookeeper.znode.parent '. There could is a mismatch with the one configured in the master.
2016-12-09 15:10:39,264 ERROR [Org.apache.hadoop.hbase.client.connectionmanager$hconnectionimplementation]-the Node/hbase is not in ZooKeeper. It should has been written by the master. Check the value configured in ' Zookeeper.znode.parent '. There could is a mismatch with the one configured in the master.

First of all, I have encountered this problem in which link.

HBase Java API Programming This step.

Pseudo-distribution mode, such as (djt002)
The default value for HBASE_MANAGES_ZK in the hbase-env.sh configuration document is True, which indicates that HBase uses its own zookeeper instance.
However, the instance can only serve HBase in standalone or pseudo-distributed mode .

Of course, you can also, in click or pseudo distribution mode, use an externally installed zookeeper.


In distributed mode , you need to configure your own zookeeper cluster. such as (Hadoopmaster, HadoopSlave1, HadoopSlave2)
The default value for HBASE_MANAGES_ZK in the hbase-env.sh configuration document is true, which means that when HBase is started in distributed mode, HBase runs zookeeper as part of itself. The process becomes hquorumpeer.
The default value for HBASE_MANAGES_ZK in the hbase-env.sh configuration document is false, which means that in distributed mode, you need to manually start the zookeeper manually before each node, and then start on the master node
HBase, the process becomes Hmaster (hadoopmaster node).

Solution to the problem:

This pit has been going on for a long time

The main reason is that the standalone installation of zookeeper has not been created/znode

Causes HBase to be unable to navigate to the default Znode---/hbase

Workaround:

Run zookeeper:./zkcli.sh

Create Znode:create/hbase Myhbase

Now restart HBase, Hmaster and regionserver start normally

But the HBase shell is having a bug

If any of the following questions arise, then

Can ' t get master address from ZooKeeper; Znode data = = NULL

This could be a hostname problem.

Solution:

Modify/etc/hostname to set the hostname correctly

HBase does not start, the node/hbase is not in ZooKeeper

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.