osx - 运行伪分布式hbase出错

我在Mac OSX 10.9用Homebrew安装了Hadoop和HBase,Hadoop的版本是2.5.1,HBase的版本是0.98.6.1.

启动HDFS后,尝试启动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

启动master,登录到/usr/local/Cellar/hbase/ 0.98.6.1 /logs/hbase-lsphate-master-Ethans-MacBook-Pro.local.out

错误:找不到或加载主类org.apache.hadoop.hbase.master.HMaster

localhost:启动regionserver,登录到/usr/local/Cellar/hbase/ 0.98.6.1 /logs/hbase-lsphate-regionserver-Ethans-MacBook-Pro.local.out

localhost:错误:找不到或加载主类org.apache.hadoop.hbase.regionserver.HRegionServer

有什么建议?

时间:

你的HBASE_HOME可能没有指向正确的位置。尝试导出HBASE_HOME和HBASE_CONF_DIR,如下所示

export HBASE_HOME=/usr/local/Cellar/hbase/ 0.98.6.1 /libexec
export HBASE_CONF_DIR=$HBASE_HOME/conf

...