我已经完成了具有3个节点(hadoop-master,hadoop-data1,hadoop-data2)的集群Hadoop。这似乎可行,但是当我尝试在其上安装hbase时,在hbase shell上执行此操作仍会出现错误
status
这是hbase-site.xml配置:
<configuration>
<property>
<name>hbase.rootdir</name>
<value>hdfs://hadoop-master:9000/hbase</value>
</property>
<property>
<name>hbase.cluster.distributed</name>
<value>true</value>
</property>
<property>
<name>hbase.zookeeper.property.dataDir</name>
<value>/usr/local/zookeeper</value>
</property>
<property>
<name>hbase.zookeeper.quorum</name>
<value>hadoop-master</value>
</property>
<property>
<name>hbase.zookeeper.property.clientPort</name>
<value>2181</value>
</property>
</configuration>
,集群似乎可以正常工作,因为我可以访问 http://IP_OF_MY_MASTER_NODE:8088/cluster/nodes 这就是我用jps得到的
hadoop@hadoop-master:~$ jps
29713 ResourceManager
29029 NameNode
29893 NodeManager
29480 SecondaryNameNode
30568 HQuorumPeer
29213 DataNode
31101 Jps
hadoop@hadoop-data1:~$ jps
29348 Jps
28665 DataNode
28842 NodeManager
这是我的实际结果:
hadoop@hadoop-master:~$ /home/hadoop/hbase/hbase-2.1.4/bin/hbase shell
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/local/hadoop/share/hadoop/common/lib/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/home/hadoop/hbase/hbase-2.1.4/lib/client-facing-thirdparty/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]
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.1.4, r5b7722f8551bca783adb36a920ca77e417ca99d1, Tue Mar 19 19:05:06 UTC 2019
Took 0.0033 seconds
hbase(main):001:0> status
ERROR: KeeperErrorCode = NoNode for /hbase/master
在此先感谢您的帮助
答案 0 :(得分:0)
您收到此错误,因为 HMaster进程未运行。签入 jps 。
在$HBASE_HOME/logs
目录中检查hbase-***-master.log
是否存在特定错误。
还要选中this answer。