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

 安装好hadoop,然后安装hbase启动时出现问题,下面是报错信息:

./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文件 即二进制文件。

然后把需要的配置配好重新启动

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

总结:这么简单的问题也不会有人出现了,所以最后都没搜到有效的问题解决方法,记录一下引以为戒。

 

posted @ 2019-03-05 17:12  风起时的悟  阅读(9764)  评论(1编辑  收藏  举报