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: [] unable to ask 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: [] unable to ask 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>
In fact, a package is missing.