Hmaster 没有使用 hadoop 2.7.1 启动 hbase 1.1.2

Posted

技术标签:

【中文标题】Hmaster 没有使用 hadoop 2.7.1 启动 hbase 1.1.2【英文标题】:Hmaster is not starting hbase 1.1.2 with hadoop 2.7.1 【发布时间】:2015-11-15 07:04:21 【问题描述】:

我安装了hadoop 2.7.1,它运行成功。 我尝试通过引用此链接安装hbase 1.1.2

https://archanaschangale.wordpress.com/2013/08/31/installing-pseudo-distributed-hbase-on-ubuntu/

配置: hbase-env.sh:

export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-i386
export HBASE_REGIONSERVERS=/usr/lib/hbase/hbase-1.1.2/conf/regionservers
export HBASE_MANAGES_ZK=true

hbase-site.xml:

<configuration>
    <property>
    <name>hbase.rootdir</name>
    <value>hdfs://localhost:9000/hbase</value>
    </property>

    <property>
    <name>hbase.cluster.distributed</name>
    <value>true</value>
    </property>

    <property>
    <name>hbase.zookeeper.quorum</name>
    <value>localhost</value>
    </property>

    <property>
    <name>dfs.replication</name>
    <value>1</value>
    </property>

    <property>
    <name>hbase.zookeeper.property.clientPort</name>
    <value>2181</value>
    </property>

    <property>
    <name>hbase.zookeeper.property.dataDir</name>
    <value>/home/hduser/hbase/zookeeper</value>
    </property>
</configuration> 

bashrc
export HBASE_HOME=/usr/lib/hbase/hbase-1.1.2
export PATH=$PATH:$HBASE_HOME/bin

但是当我尝试使用 bin/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/lib/hbase/hbase-0.94.8/logs/hbase-hduser-master-master-VirtualBox.out
log4j:ERROR Could not find value for key log4j.appender.RFA
log4j:ERROR Could not instantiate appender named "RFA".
log4j:ERROR Could not find value for key log4j.appender.RFAS
log4j:ERROR Could not instantiate appender named "RFAS".
log4j:WARN No appenders could be found for logger (org.apache.hadoop.hbase.util.VersionInfo).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.

【问题讨论】:

【参考方案1】:

我更改了存储文件夹

hbase.zookeeper.property.dataDir

这是堆栈溢出答案的链接: Link

【讨论】:

以上是关于Hmaster 没有使用 hadoop 2.7.1 启动 hbase 1.1.2的主要内容,如果未能解决你的问题,请参考以下文章

启动hbase时出现HMaster Aborted错误(HMaster启动之(HMaster线程的调用))

hbase的HMaster进程起不来,是怎么回事

HBASE启动失败,Failed construction of Master: class org.apache.hadoop.hbase.master.HMaster

HBase 启动后HMaster进程自动消失

hbase报错之 Master is initializing

Hbase的HMaster在启动后自动关闭