hbase 错误:ERROR: Can't get master address from ZooKeeper; znode data == null

启动hbase后,在hbase shell 中运行如下命令报错:

注意:我使用的不是hbase自带的zookeeper。是自己搭建的一个zookeeper集群。且export HBASE_MANAGES_ZK=true这句话已被注释掉。

1、运行命令:
      hbase(main):001:0> list

2、报错信息:

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

Here is some help for this command:
List all tables in hbase. Optional regular expression parameter could
be used to filter the output. Examples:

  hbase> list
  hbase> list 'abc.*'
  hbase> list 'ns:abc.*'
  hbase> list 'ns:.*'
3、当停止hbase时,出现如下错误信息

# bin/stop-hbase.sh
stopping hbase
TitanMaster: no zookeeper to stop because kill -0 of pid 6724 failed with status 1
TitanSlaver2: no zookeeper to stop because kill -0 of pid 4117 failed with status 1

4、解决方法

修改hbase-env.sh 配置文件,将其中的export HBASE_MANAGES_ZK=false,重新启动hbase。若还是出现同样的错误,则进入zookeeper中删除hbase数据


其它错误原因可参考:http://blog.csdn.net/u010022051/article/details/44176931








你可能感兴趣的:(Hbase)