Error running pseudo-distributed hbase

别说谁变了你拦得住时间么 提交于 2020-01-05 09:28:50

问题


I installed Hadoop and HBase in Mac OSX 10.9 through Homebrew. The version of Hadoop is 2.5.1, and the version of HBase is 0.98.6.1.

After I started HDFS, and try to start HBase, I got these errors:

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/0.98.6.1/logs/hbase-lsphate-master-Ethans-MacBook-Pro.local.out

Error: Could not find or load main class org.apache.hadoop.hbase.master.HMaster

localhost: starting regionserver, logging to /usr/local/Cellar/hbase/0.98.6.1/logs/hbase-lsphate-regionserver-Ethans-MacBook-Pro.local.out

localhost: Error: Could not find or load main class org.apache.hadoop.hbase.regionserver.HRegionServer

Is there any suggestion of this error? I've googled it and tried any solution I can find but they were all no use.


回答1:


Your's HBASE_HOME might not be pointing to the correct location. Try exporting HBASE_HOME and HBASE_CONF_DIR like

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

Thanks.



来源:https://stackoverflow.com/questions/26111562/error-running-pseudo-distributed-hbase

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!