HBASE启动失败,Failed construction of Master: class org.apache.hadoop.hbase.master.HMaster
Posted 诸葛小四
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了HBASE启动失败,Failed construction of Master: class org.apache.hadoop.hbase.master.HMaster相关的知识,希望对你有一定的参考价值。
Master日志错误:
2015-12-02 06:34:32,394 ERROR [main] master.HMasterCommandLine: Master exiting
java.lang.RuntimeException: Failed construction of Master: class org.apache.hadoop.hbase.master.HMaster
at org.apache.hadoop.hbase.master.HMaster.constructMaster(HMaster.java:1988)
at org.apache.hadoop.hbase.master.HMasterCommandLine.startMaster(HMasterCommandLine.java:203)
at org.apache.hadoop.hbase.master.HMasterCommandLine.run(HMasterCommandLine.java:139)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
at org.apache.hadoop.hbase.util.ServerCommandLine.doMain(ServerCommandLine.java:126)
at org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:2002)
Caused by: java.lang.NoClassDefFoundError: com/amazonaws/services/s3/AmazonS3
slave日志错误:
2015-12-02 06:34:32,285 ERROR [main] regionserver.HRegionServerCommandLine: Region server exiting
java.lang.RuntimeException: Failed construction of Regionserver: class org.apache.hadoop.hbase.regionserver.HRegionServer
at org.apache.hadoop.hbase.regionserver.HRegionServer.constructRegionServer(HRegionServer.java:2496)
at org.apache.hadoop.hbase.regionserver.HRegionServerCommandLine.start(HRegionServerCommandLine.java:64)
at org.apache.hadoop.hbase.regionserver.HRegionServerCommandLine.run(HRegionServerCommandLine.java:87)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
at org.apache.hadoop.hbase.util.ServerCommandLine.doMain(ServerCommandLine.java:126)
at org.apache.hadoop.hbase.regionserver.HRegionServer.main(HRegionServer.java:2511)
Caused by: java.lang.reflect.InvocationTargetException
解决方法:一般遇到这个问题的,可能都是用hadoop下的jar包覆盖了hbase下的hadoop*.jar
我用的hbase是1.1.3 ,不能覆盖,明显2.6.0的hadoop下是没有client这个客户端jar包的,而1.1.3的lib下有。
以上是关于HBASE启动失败,Failed construction of Master: class org.apache.hadoop.hbase.master.HMaster的主要内容,如果未能解决你的问题,请参考以下文章
hbase启动错误,masterLOG,Failed construction of Master Causedby:java.net.BindException: 无法指定被
This server is in the failed servers list: localhost/127.0.0.1:16000 启动hbase api调用错误