hadoop - 启动Hbase 1.0.0 报错

标签 hadoop hbase

我刚刚通过 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/

相关文章:

hadoop - 关于 LoadFunc 的示例和更多解释

oracle - 每月定期进行数据过滤

hadoop - HBase 正确显示时间戳值?

java - Hbase连接池

java - 找不到 Storm Hbase 配置

hadoop - 用于读取和更新的 HBase 行键设计

hadoop - oozie 在哪里存储捕获的 Java 操作(或)任何操作的输出值

hadoop - 实时应用的Hbase

nosql - Hbase性能

hadoop - Hive No files matching path file 和 file Exists