ubuntu 13 编译hadoop 2.2.0源码出现问题及解决方法

来源:互联网 发布:广西网络教育 编辑:程序博客网 时间:2024/04/30 01:55
1.[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解决方法https://issues.apache.org/jira/browse/HADOOP-10110Index: hadoop-common-project/hadoop-auth/pom.xml===================================================================--- hadoop-common-project/hadoop-auth/pom.xml(revision 1543124)+++ hadoop-common-project/hadoop-auth/pom.xml(working copy)@@ -54,6 +54,11 @@     </dependency>     <dependency>       <groupId>org.mortbay.jetty</groupId>+      <artifactId>jetty-util</artifactId>+      <scope>test</scope>+    </dependency>+    <dependency>+      <groupId>org.mortbay.jetty</groupId>       <artifactId>jetty</artifactId>       <scope>test</scope>     </dependency>2.[ERROR] Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.1:war (default-war) on project hadoop-auth-examples: Failed to copy file for artifact[org.apache.hadoop:hadoop-auth:jar:0.24.0-SNAPSHOT:compile]: /home/jenkins/jenkins-slave/workspace/PreCommit-HADOOP-Build/trunk/hadoop-common-project/hadoop-auth/target/classes (Is a directory) -> [Help 1]解决方法https://issues.apache.org/jira/browse/HADOOP-7768Index: dev-support/test-patch.sh===================================================================--- dev-support/test-patch.sh(revision 1189531)+++ dev-support/test-patch.sh(working copy)@@ -598,8 +598,8 @@   echo ""   echo "" -  echo "$MVN clean install test -Pnative -D${PROJECT_NAME}PatchProcess"-  $MVN clean install test -Pnative -D${PROJECT_NAME}PatchProcess+  echo "$MVN clean install -Pnative -D${PROJECT_NAME}PatchProcess"+  $MVN clean install -Pnative -D${PROJECT_NAME}PatchProcess   if [[ $? != 0 ]] ; then     ### Find and format names of failed tests     failed_tests=`find . -name 'TEST*.xml' | xargs $GREP  -l -E "<failure|<error" | sed -e "s|.*target/surefire-reports/TEST-|                  |g" | sed -e "s|\.xml||g"`
其他错误:
http://blog.csdn.net/dingdn/article/details/12983193
0 0
原创粉丝点击