hbase 异常处理

一。ERROR: The node /hbase is not in ZooKeeper. It should have been written by the master. Check the value configured in 'zookeeper.znode.parent'. There could be a mismatch with the one configured in the master.

使用zkCli.sh 连接zookeeper

create /hbase 1

创建一个/hbase 节点就可以

二、ERROR: Can't get master address from ZooKeeper; znode data == null

原因:运行hbase(zookeeper)的用户无法写入zookeeper文件,导致znode data为空。

解决:在hbase-site.xml指定一个运行hbase的用户有写入文件权限的目录作为zookeeper数据目录,如
  <property>
    <name>hbase.zookeeper.property.dataDir</name>
    <value>/home/当前用户名/zk_data</value>
  </property>

原文地址:https://www.cnblogs.com/mrma/p/12990023.html