我已安装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
但是当我尝试使用hbase启动时 箱/ 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.