Hadoop2.2.0在Ubuntu编译失败解决方法
来源:互联网 发布:nuity3d 用lua封装java 编辑:程序博客网 时间:2024/05/19 03:43
[INFO] ------------------------------------------------------------------------[INFO] BUILD FAILURE[INFO] ------------------------------------------------------------------------[INFO] Total time: 1:29.469s[INFO] Finished at: Mon Nov 18 12:30:36 PST 2013[INFO] Final Memory: 37M/120M[INFO] ------------------------------------------------------------------------[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[ERROR] server = new Server(0);[ERROR] /home/chuan/trunk/hadoop-common-project/hadoop-auth/src/test/java/org/apache/hadoop/security/authentication/client/AuthenticatorTestCase.java:[94,29] cannot access org.mortbay.component.LifeCycle[ERROR] class file for org.mortbay.component.LifeCycle not found[ERROR] server.getConnectors()[0].setHost(host);[ERROR] /home/chuan/trunk/hadoop-common-project/hadoop-auth/src/test/java/org/apache/hadoop/security/authentication/client/AuthenticatorTestCase.java:[96,10] cannot find symbol[ERROR] symbol : method start()[ERROR] location: class org.mortbay.jetty.Server[ERROR] /home/chuan/trunk/hadoop-common-project/hadoop-auth/src/test/java/org/apache/hadoop/security/authentication/client/AuthenticatorTestCase.java:[102,12] cannot find symbol[ERROR] symbol : method stop()[ERROR] location: class org.mortbay.jetty.Server[ERROR] -> [Help 1][ERROR][ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.[ERROR] Re-run Maven using the -X switch to enable full debug logging.[ERROR][ERROR] For more information about the errors and possible solutions, please read the following articles:[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException[ERROR][ERROR] After correcting the problems, you can resume the build with the command[ERROR] mvn <goals> -rf :hadoop-auth
这里是Hadoop官网给出的该错误信息,即hadoop-auth没法编译通过,这里是直接把它们给出的错误信息粘贴过来了,如果你也遇到这个错误的话,可以找到hadoop目录下的hadoop-common-project/hadoop-auth文件夹下,可以看到在这下面有一个.pom文件,因为hadoop是用maven进行构建的,而pom文件是maven构建的必要文件,pom对于maven就相当于make对于Makefile,但是又不是完全相同的,因为pom文件中会给出项目构建所依赖的jar包,由maven自动进行依赖包的下载,从而实现对项目的构建。
这里的修改方法是在这个pom文件中的第58行加入
<artifactId>jetty-util</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.mortbay.jetty</groupId> <artifactId>jetty</artifactId>当然可能因为下载的hadoop版本不同在所在行数上有所不同,具体的可以参见,https://issues.apache.org/jira/secure/attachment/12614482/HADOOP-10110.patch 这时hadoop官方提供的一个补丁,加入这些依赖之后,再进行构建,这里就没有问题了
0 0
- Hadoop2.2.0在Ubuntu编译失败解决方法
- hadoop2.2.0源码编译(ubuntu)
- 在Ubuntu下编译hadoop2.5.x
- VMWare Workstation 安装在ubuntu 14.04(15.04) 内核(3.19) 中更新编译失败的解决方法
- hadoop2.2.0源码编译(ubuntu下)
- mahout hadoop2.6.0 编译失败
- 在Ubuntu 64位OS上运行hadoop2.2.0[重新编译hadoop]
- 在Ubuntu 64位OS上运行hadoop2.2.0[重新编译hadoop]
- ubuntu下编译busybox失败的一种解决方法
- linux(ubuntu)下编译安装cx_Freeze失败解决方法
- ubuntu编译hadoop2.7.1源码
- 编译Hadoop2.7.1(Ubuntu)
- 在virtual box上安装ubuntu server失败的解决方法
- hadoop2.4.1源码在64位系统编译过程中遇到的几个错误及解决方法
- 编译hadoop2.2.0源码
- hadoop2.2.0编译
- hadoop2.2.0源代码编译
- Hadoop2.2.0编译
- 在Linux下将HTML文件转换成PDF文件
- 黑马程序员——单例模式
- C语言深度剖析自测题8解析
- 《笨方法学Python》学习笔记
- RabbitMq六种使用模式(2)_多个消费者
- Hadoop2.2.0在Ubuntu编译失败解决方法
- RabbitMq六种使用模式(3)_订阅发布模式
- IPython notebook在浏览器中显示不正常的问题及解决方法
- Linux定时执行脚本
- 使用struts2的标签s:if获取url中的参数值,并与字符串常量进行比较
- Java静态变量和静态方法
- Android环境搭建
- 黑马程序员——抽象类、接口和内部类
- 解决Failure executing javac, but could not parse the error