hmaster没有使用hadoop 2.7.1启动hbase 1.1.2

rdrgkggo  于 2021-06-03  发布在  Hadoop
关注(0)|答案(1)|浏览(367)

我有 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启动hbase时

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.
qeeaahzv

qeeaahzv1#

我更改了存储

hbase.zookeeper.property.dataDir

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

相关问题