码迷,mamicode.com
首页 > 其他好文 > 详细

Hbase出现ERROR: Can't get master address from ZooKeeper; znode data == null解决办法

时间:2017-03-15 22:38:22      阅读:382      评论:0      收藏:0      [点我收藏+]

标签:zookeeper   ima   ble   img   tle   lte   out   href   技术分享   

 

 

   问题描述如下:

技术分享

hbase(main):001:0> list
TABLE                                                                                                                                                                                          

ERROR: Cant 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:.*


hbase(main):002:0> list
TABLE                                                                                                                                                                                          

ERROR: Cant 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:.*


hbase(main):003:0> 

 

 

 

 出现此问题可能是zookeeper不稳定造成的,采用的是虚拟机,经常挂起的状态,使用hbase的list命令出现下面错误,这个可能是hbase的稳定性造成的,解决办法有两种。这里使用第一种办法就解决了。

 

 

 

解决方法:

1.重启hbase

  1. stop-hbase.sh
然后

  2.start-hbase.sh

技术分享

 

  或者,要么实在不行,就关掉所有集群。再重新开启吧!

 

 

 

2.解决方法2:格式化namenode
  这里,不多赘述。但是一般没到没办法情况下,不要去格式化。

  至于,为什么,请见

Hadoop的多节点集群启动,唯独没有namenode进程?(血淋淋教训,一定拍快照)

Hbase出现ERROR: Can't get master address from ZooKeeper; znode data == null解决办法

标签:zookeeper   ima   ble   img   tle   lte   out   href   技术分享   

原文地址:http://www.cnblogs.com/zlslch/p/6556870.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!