错误:/ hbase / master

时间:2019-04-29 10:06:52

标签: hbase

我正在尝试根据hbase的文档在psedou分布式模式下配置hbase。一切似乎都正常,这是jps命令的结果:

3905 SecondaryNameNode
11235 HMaster
4293 NodeManager
7878 HQuorumPeer
3515 NameNode
11468 Jps
3692 DataNode
8189 HRegionServer
4142 ResourceManager

这是我的hbase-site.xml:

<configuration>
   <property>
      <name>hbase.rootdir</name>
      <value>hdfs://localhost:9000/hbase</value>
   </property>
   <property>
      <name>hbase.zookeeper.property.dataDir</name>
      <value>/home/hadoop/zookeeper</value>
   </property>
   <property>
     <name>hbase.cluster.distributed</name>
     <value>true</value>
   </property>
</configuration>

我可以访问hmaster WebUI来验证安装。 现在,我使用./hbase shell命令访问hbase shell,并且可以。然后,我使用list命令,它给了我错误,具体是:

hadoop@Lenovo-Y520-15IKBN:/usr/local/Hbase/bin$ ./hbase shell
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/local/Hbase/lib/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/local/hadoop/hadoop-3.1.2/share/hadoop/common/lib/slf4j-log4j12-1.7.25.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]
2019-04-29 16:37:26,245 WARN  [main] util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
HBase Shell
Use "help" to get list of supported commands.
Use "exit" to quit this interactive shell.
For Reference, please visit: http://hbase.apache.org/2.0/book.html#shell
Version 2.0.5, r76458dd074df17520ad451ded198cd832138e929, Mon Mar 18 00:41:49 UTC 2019
Took 0.0024 seconds                                                                                                                                                                                         
hbase(main):001:0> list
TABLE                                                                                                                                                                                                       

ERROR: KeeperErrorCode = NoNode for /hbase/master

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

Took 8.2610 seconds                                                                                                                                                                                         
hbase(main):002:0>

这是hmaster的日志文件:

SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/local/Hbase/lib/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/local/hadoop/hadoop-3.1.2/share/hadoop/common/lib/slf4j-log4j12-1.7.25.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]

我发现了许多其他有关此问题的问题,但并没有给我解决方案。请给我帮助或任何建议,以便我可以解决它。谢谢

0 个答案:

没有答案