Hbase错误“错误:/hbase/master的KeeperErrorCode = NoNode" [英] Hbase Error "ERROR: KeeperErrorCode = NoNode for /hbase/master"
问题描述
在hbase shell中执行任何命令时,我在hbase shell中收到以下错误"ERROR:KeeperErrorCode = NoNode for/hbase/master".
While executing any command in hbase shell, I am receiving the following error "ERROR: KeeperErrorCode = NoNode for /hbase/master" in hbase shell.
启动HBASE:
HOSTCHND:hbase-2.0.0 gvm$ ./bin/start-hbase.sh
localhost: running zookeeper, logging to /usr/local/Cellar/hbase-2.0.0/bin/../logs/hbase-gvm-zookeeper-HOSTCHND.local.out
running master, logging to /usr/local/Cellar/hbase-2.0.0/logs/hbase-gvm-master-HOSTCHND.local.out
: running regionserver, logging to /usr/local/Cellar/hbase-2.0.0/logs/hbase-gvm-regionserver-HOSTCHND.local.out
在HBASE SHELL中检查状态时:
hbase(main):001:0> status
ERROR: KeeperErrorCode = NoNode for /hbase/master
Show cluster status. Can be 'summary', 'simple', 'detailed', or 'replication'. The
default is 'summary'. Examples:
hbase> status
hbase> status 'simple'
hbase> status 'summary'
hbase> status 'detailed'
hbase> status 'replication'
hbase> status 'replication', 'source'
hbase> status 'replication', 'sink'
Took 9.4096 seconds
hbase(main):002:0>
hbase-site.xml
<configuration>
<property>
<name>hbase.rootdir</name>
<value>hdfs://localhost:9000/hbase</value>
</property>
<property>
<name>hbase.zookeeper.property.clientPort</name>
<value>2181</value>
</property>
<property>
<name>hbase.zookeeper.property.dataDir</name>
<value>/usr/local/Cellar/hbase-2.0.0/hbasestorage/zookeeper</value>
</property>
<property>
<name>hbase.cluster.distributed</name>
<value>true</value>
</property>
<property>
<name>hbase.zookeeper.quorum</name>
<value>localhost</value>
</property>
</configuration>
请让我知道为什么在执行hbase命令时会发生此错误?
Please let me know why this error happens while executing hbase commands?
推荐答案
将这些配置替换或添加到hbase dir的conf文件夹中的hbase-site.xml文件中,然后重新运行"hbase shell"命令,然后重新运行list"命令以查看当前表.
replace or add these configuration to the hbase-site.xml file in the conf folder of hbase dir, and then rerun the "hbase shell" command and then "list" command to view the tables present.
<?xml version="1.0" encoding="utf-8" ?>
<!--Keeper Error fix-->
<configuration>
<property>
<name>hbase.rootdir</name>
<value>hdfs://localhost:8020/hbase</value>
</property>
<property>
<name>hbase.zookeeper.quorum</name>
<value>localhost</value>
</property>
<property>
<name>hbase.zookeeper.property.clientPort</name>
<value>2182</value>
</property>
<property>
<name>hbase.zookeeper.property.dataDir</name>
<value>/var/lib/hbase/zookeeper</value>
</property>
</configuration>
这篇关于Hbase错误“错误:/hbase/master的KeeperErrorCode = NoNode"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!