立即注册 登录
About云-梭伦科技 返回首页

desehawk的个人空间 https://www.aboutyun.com/?29 [收藏] [复制] [分享] [RSS]

日志

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

已有 2011 次阅读2014-8-10 12:02

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


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

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

  5.   hbase> list
  6.   hbase> list 'abc.*'

解决方法:

1.重启hbase
  1. stop-hbase.sh



然后
  1. start-hbase.sh

问题解决。这里也找了其他解决办法,作为一个整理。




2.解决方法2:格式化namenode
2节点的datanode 日志信息中:
Incompatible namespaceIDs in /home/hadoop/tmp/dfs/data: namenode namespaceID = 1780037790
1节点的namenode日志信息::java.io.IOException: File /home/hadoop/tmp/mapred/system/jobtracker.info could only be replicated to 0 nodes, instead of 1
将namenode的信息删除,重新格式化
重新启动,hbase正常

路过

雷人

握手

鲜花

鸡蛋

评论 (0 个评论)

facelist doodle 涂鸦板

您需要登录后才可以评论 登录 | 立即注册

关闭

推荐上一条 /2 下一条