1、Apache Hadoop Auth ................................ FAILURE
最新的2.2.0 的Source Code 压缩包解压出来的code有个bug 需要patch后才能编译。否则编译hadoop-auth 会提示下面错误:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:testCompile (default-testCompile) on project hadoop-auth: Compilation failure: Compilation failure:[ERROR] /home/chuan/trunk/hadoop-common-project/hadoop-auth/src/test/java/org/apache/hadoop/security/authentication/client/AuthenticatorTestCase.java:[84,13] cannot access org.mortbay.component.AbstractLifeCycle[ERROR] class file for org.mortbay.component.AbstractLifeCycle not found
在Apache Hadoop Auth 这一步会失败:
[INFO] Apache Hadoop Auth ................................ FAILURE [9.266s]
[INFO] Apache Hadoop Auth Examples ....................... SKIPPED
……
……
解决办法:
根据补丁Patch :https://issues./jira/browse/HADOOP-10110 所述:
在 /usr/release-2.2.0/hadoop-common-project/hadoop-auth/pom.xml文件中,添加以下内容:
<dependency>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-util</artifactId>
<scope>test</scope>
</dependency>