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