Error in compiling source code of hadoop2.2.0

Source: Internet
Author: User

When compiling the source code of hadoop2.2.0,

mvn install -DskipTests

Error:

[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] cannot access org. mortbay. component. abstractLifeCycle does not find org. mortbay. component. abstractLifeCycle class file 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: [] cannot access org. mortbay. component. org. Not found in LifeCycle. mortbay. component. lifeCycle file 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] cannot find the symbol: Method start () Location: Class 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: [] cannot find the symbol: Method stop () Location: Class org. mortbay. jetty. server [INFO] 4 errors [INFO] ------------------------------------------------------------- [INFO] Quit

This is a small bug in hadoop2.2.0 source code: https://issues.apache.org/jira/browse/HADOOP-10110


If you do not want to read English, modify hadoop-common-project/hadoop-auth/pom. xml and add a dependency:

<dependency><groupId>org.mortbay.jetty</groupId><artifactId>jetty-util</artifactId><scope>test</scope></dependency>

A package is missing.






Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.