hadoop2.2.0 소스 코드 컴파일 오류

1854 단어
hadoop2.2.0 원본 코드를 컴파일할 때,
mvn install -DskipTests

오류 보고:
[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] /home/test/work/env/hadoop/hadoop-2.2.0-src/hadoop-common-project/hadoop-auth/src/test/java/org/apache/hadoop/security/authentication/client/AuthenticatorTestCase.java:[86,13]   org.mortbay.component.AbstractLifeCycle
  org.mortbay.component.AbstractLifeCycle  
    server = new Server(0);
[ERROR] /home/test/work/env/hadoop/hadoop-2.2.0-src/hadoop-common-project/hadoop-auth/src/test/java/org/apache/hadoop/security/authentication/client/AuthenticatorTestCase.java:[96,29]   org.mortbay.component.LifeCycle
  org.mortbay.component.LifeCycle  
    server.getConnectors()[0].setHost(host);
[ERROR] /home/test/work/env/hadoop/hadoop-2.2.0-src/hadoop-common-project/hadoop-auth/src/test/java/org/apache/hadoop/security/authentication/client/AuthenticatorTestCase.java:[98,10]  
 :   start()
 :   org.mortbay.jetty.Server
[ERROR] /home/test/work/env/hadoop/hadoop-2.2.0-src/hadoop-common-project/hadoop-auth/src/test/java/org/apache/hadoop/security/authentication/client/AuthenticatorTestCase.java:[104,12]  
 :   stop()
 :   org.mortbay.jetty.Server
[INFO] 4 errors 
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------

이것은 hadoop2.2.0 소스 코드의 작은 버그입니다.https://issues.apache.org/jira/browse/HADOOP-10110
영어를 보기 싫으면hadoop-common-project/hadoop-auth/pom를 직접 수정하세요.xml, dependency 추가:
<dependency>
	<groupId>org.mortbay.jetty</groupId>
	<artifactId>jetty-util</artifactId>
	<scope>test</scope>
</dependency>

사실 가방 하나가 없어졌어요.

좋은 웹페이지 즐겨찾기