启动Hbase 1.0.0时出错

时间:2015-05-02 05:06:55

标签: 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?

1 个答案:

答案 0 :(得分:1)

解决方案: HBASE_HOME =在/ usr /本地/库/ 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>