hbase 啓動 Error: Could not find or load main class org.apache.hadoop.hbase.util.HBaseConfTool

 安裝好hadoop,而後安裝hbase啓動時出現問題,下面是報錯信息:node

./hbase/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/local/hbase/logs/hbase-root-master-localhost.out
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option PermSize=128m; support was removed in 8.0
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=128m; support was removed in 8.0
Error: Could not find or load main class org.apache.hadoop.hbase.master.HMaster
starting regionserver, logging to /usr/local/hbase/logs/hbase-root-1-regionserver-localhost.out
Error: Could not find or load main class org.apache.hadoop.hbase.regionserver.HRegionServer

分析:啓動時找不到類文件,搜了好多有的說是classpath環境變量問題,最後終於找到了問題所在,因爲下的是src文件 即未編譯的文件,不能直接用,必須先編譯,從新下載bin文件 即二進制文件。apache

而後把須要的配置配好從新啓動oop

start-hbase.sh 
running master, logging to /usr/local/hadoop-2.6.5/hbase-1.4.9/logs/hbase--master-masternode.out
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option PermSize=128m; support was removed in 8.0
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=128m; support was removed in 8.0
slave1: running regionserver, logging to /usr/local/hadoop-2.6.5/hbase-1.4.9/logs/hbase-root-regionserver-slave1.out
slave2: running regionserver, logging to /usr/local/hadoop-2.6.5/hbase-1.4.9/logs/hbase-root-regionserver-slave2.out

總結:這麼簡單的問題也不會有人出現了,因此最後都沒搜到有效的問題解決方法,記錄一下引覺得戒。spa

相關文章
相關標籤/搜索