zookeeper中没有hbase的master

来源:互联网 发布:明教喵哥捏脸数据 编辑:程序博客网 时间:2024/06/05 10:20

      hbase出了一个错,

hbase(main):001:0> listTABLE                                                                                                                                                                                          SLF4J: Class path contains multiple SLF4J bindings.SLF4J: Found binding in [jar:file:/home/hadoop/hbase-0.98.9-hadoop2/lib/phoenix-4.2.2-client.jar!/org/slf4j/impl/StaticLoggerBinder.class]SLF4J: Found binding in [jar:file:/home/hadoop/hbase-0.98.9-hadoop2/lib/slf4j-log4j12-1.6.4.jar!/org/slf4j/impl/StaticLoggerBinder.class]SLF4J: Found binding in [jar:file:/home/hadoop/hadoop-2.6.0/share/hadoop/common/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.2017-07-14 15:06:48,032 WARN  [main] util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicableERROR: 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:.*'

      看出错信息是不能从zookeeper中得到master地址。用hbase zkcli命令查看

[zk: xxxx:2181(CONNECTED) 0] ls /[hbase, zookeeper][zk: xxxx:2181(CONNECTED) 1] ls /hbase[meta-region-server, backup-masters, table, draining, region-in-transition, table-lock, balancer, namespace, hbaseid, online-snapshot, replication, splitWAL, recovering-regions, rs]
      确实没有master文件夹。然后我就关闭hbase和hadoop,清空zookeeper的data目录,在重启就好了。

[zk: xxxx:2181(CONNECTED) 0] ls /hbase[meta-region-server, backup-masters, table, draining, region-in-transition, table-lock, running, master, namespace, hbaseid, online-snapshot, replication, splitWAL, recovering-regions, rs]
     出现了master文件夹。不知道是什么原因造成的,记录一下。





阅读全文
0 0