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

来源:互联网 发布:淘宝聚划算商城 编辑:程序博客网 时间:2024/05/22 23:05

启动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 == nullHere is some help for this command:List all tables in hbase. Optional regular expression parameter couldbe used to filter the output. Examples:  hbase> list  hbase> list 'abc.*'  hbase> list 'ns:abc.*'  hbase> list 'ns:.*'
3、当停止hbase时,出现如下错误信息

# bin/stop-hbase.shstopping hbaseTitanMaster: no zookeeper to stop because kill -0 of pid 6724 failed with status 1TitanSlaver2: 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








0 0
原创粉丝点击