分享

list的时候Hbase报错的问题

mvs2008 发表于 2015-11-10 14:40:24 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 4 17863
刚装好的Hbase,想尝试下list命令,结果报错。
[mw_shl_code=bash,true][hadoop@master conf]$ hbase shell
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/home/hadoop/hbase-1.0.1.1/lib/slf4j-log4j12-1.7.7.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.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
HBase Shell; enter 'help<RETURN>' for list of supported commands.
Type "exit<RETURN>" to leave the HBase Shell
Version 1.0.1.1, re1dbf4df30d214fca14908df71d038081577ea46, Sun May 17 12:34:26 PDT 2015

hbase(main):001:0> list
TABLE                                                                                                        

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:.*'


hbase(main):002:0> quit
[/mw_shl_code]

Hadoop版本信息:
[mw_shl_code=bash,true][hadoop@master conf]$ hadoop version
Hadoop 2.6.0
Subversion Unknown -r Unknown
Compiled by root on 2015-08-13T06:31Z
Compiled with protoc 2.5.0
From source with checksum 18e43357c8f927c0695f1e9522859d6a
This command was run using /home/hadoop/hadoop-2.6.0/share/hadoop/common/hadoop-common-2.6.0.jar
[/mw_shl_code]

Zookeeper版本信息:
[mw_shl_code=bash,true][hadoop@master conf]$ zkServer.sh status
JMX enabled by default
Using config: /home/hadoop/zookeeper-3.4.6/bin/../conf/zoo.cfg
Mode: standalone
[/mw_shl_code]

尝试过重启Hbase,不行
尝试过format namenode,也不行。

已有(4)人评论

跳转到指定楼层
Lifing 发表于 2015-11-10 16:06:28
zookeeper服务没有启动?
回复

使用道具 举报

s060403072 发表于 2015-11-10 16:12:16


首先jar重复这个问题需要解决
第二版本楼主看下是否兼容。从官网信息来看,应该是不兼容
hadoop、hbase、hive、zookeeper版本对应关系续(最新版)

回复

使用道具 举报

mvs2008 发表于 2015-11-10 16:34:10
Lifing 发表于 2015-11-10 16:06
zookeeper服务没有启动?

Zookeeper已经启动了
回复

使用道具 举报

mvs2008 发表于 2015-11-10 16:59:19
s060403072 发表于 2015-11-10 16:12
首先jar重复这个问题需要解决
第二版本楼主看下是否兼容。从官网信息来看,应该是不兼容
hadoop、hba ...

恩,multiple SLF4J bindings已经解决。
难道真的是版本兼容问题! 从官网来看Zookeeper跟Hbase应该是兼容的,但是Hbase和Hadoop貌似不兼容。

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条