gpt4 book ai didi

hadoop - 启动Hbase 1.0.0 报错

转载 作者:可可西里 更新时间:2023-11-01 15:32:48 33 4
gpt4 key购买 nike

我刚刚通过 brew install hbase 安装了 Hbase。编辑 hbase-site.xml

<configuration>
<property>
<name>hbase.rootdir</name>
<value>file:///usr/local/Cellar/hbase/databases/hbase-${user.name}/hbase</value>
<description>The directory shared by region servers and into
which HBase persists. The URL should be 'fully-qualified'
to include the filesystem scheme. For example, to specify the
HDFS directory '/hbase' where the HDFS instance's namenode is
running at namenode.example.org on port 9000, set this value to:
hdfs://namenode.example.org:9000/hbase. By default HBase writes
into /tmp. Change this configuration else all data will be lost
on machine restart.
</description>
</property>
</configuration>

导出 JAVA_HOME 和 HBASE_HOME。当我尝试开始时出现以下异常:

Abhisheks-MacBook-Pro:bin abhishek$ start-hbase.sh 
Error: Could not find or load main class org.apache.hadoop.hbase.util.HBaseConfTool
Error: Could not find or load main class org.apache.hadoop.hbase.zookeeper.ZKServerTool
starting master, logging to /usr/local/Cellar/hbase/1.0.0/logs/hbase-abhishek-master-Abhisheks-MacBook-Pro.local.out
Error: Could not find or load main class org.apache.hadoop.hbase.master.HMaster
cat: /usr/local/Cellar/hbase/1.0.0/conf/regionservers: No such file or directory
cat: /usr/local/Cellar/hbase/1.0.0/conf/regionservers: No such file or directory

我有Hadoop2.6.0和Hbase1.0.0。虽然我看到很多人已经遇到过这个问题,但我找不到解决方案。要顺利启动 Hbase,还需要做什么?

最佳答案

解决方法:HBASE_HOME=/usr/local/Cellar/hbase/1.0.0/libexec它应该配置为使 conf 文件夹位于 HBASE_HOME 目录中。

检查主状态:

本地主机:60010

编辑 hbase-site.xml

<configuration>
<property>
<name>hbase.rootdir</name>
<value>file:///usr/local/Cellar/hbase/databases/hbase-${user.name}/hbase</value>
<description>The directory shared by region servers and into
which HBase persists. The URL should be 'fully-qualified'
to include the filesystem scheme. For example, to specify the
HDFS directory '/hbase' where the HDFS instance's namenode is
running at namenode.example.org on port 9000, set this value to:
hdfs://namenode.example.org:9000/hbase. By default HBase writes
into /tmp. Change this configuration else all data will be lost
on machine restart.
</description>
</property>
<property >
<name>hbase.master.port</name>
<value>60000</value>
<description>The port the HBase Master should bind to.</description>
</property>
<property>
<name>hbase.master.info.port</name>
<value>60010</value>
<description>The port for the HBase Master web UI.
Set to -1 if you do not want a UI instance run.</description>
</property>
</configuration>

关于hadoop - 启动Hbase 1.0.0 报错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29998647/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com