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








  • 2
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 4
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值