天天看点

FATAL org.apache.hadoop.hbase.master.HMaster: Unhandled exception

hbase 0.90.5

hadoop 1.2.1

 配置HBase,到了最后一步,jps下,发现主节点上HMaster没有启动,在HBase log里有下面异常:

。。。

FATAL org.apache.hadoop.hbase.master.HMaster: Unhandled exception. Starting shutdown.

java.lang.NoClassDefFoundError: org/apache/commons/configuration/Configuration

 。。。 

Caused by: java.lang.ClassNotFoundException: org.apache.commons.configuration.Configuration

在网上,有老外如此回答:

Yep, commons-configuration-1.6.jar is shipped in recent hadoop-0.20.203 

and not in previous hadoop-0.20.2.

Vamshi, I bet on hadoop throwing a remote exception, with hbase being 

unable to read it cause it does not have the commons-configuration jar 

(that's what can happen when remote throws exception with non-jdk classes).

Adding the jar in hbase will allow you to better read the cause, but you 

will need after to fix your hadoop config.

      意思是HBase 的 lib文件夹中缺少commons-configuration。

   从hadoop_home/lib下面cp一个commons-configuration-1.6.jar到hbase_home/lib下, 然后就开心了。

继续阅读