现在的位置: 首页 > 云计算 > 正文

Hadoop 0.23编译常见错误

2013年07月15日 云计算 ⁄ 共 2046字 ⁄ 字号 评论关闭

0) 要是下面的错误你都碰到了。。说明你开发环境没搞好,用下面这个命令吧。

yum groupinstall "Development Libraries"


1) 报错: "[ERROR] Failed to execute goal org.codehaus.mojo:make-maven-plugin:1.0-beta-1:autoreconf (autoreconf) on project hadoop-yarn-server-nodemanager:
autoreconf command returned an exit value != 0. Aborting build; see debug output for more information. -> [Help 1]"


这个是因为编译的时候带了 native 参数,但是没装autotool。Centos下。 

yum install autoconf

yum install automake

yum install libtool        <---这个里面有 autoreconf

还是不行就 -P-cbuild 编译吧,别用native了。

2) Build fails with "[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2:exec (generate-sources) onproject hadoop-yarn-api: Command
execution failed. Process exited with an error: 1(Exit value: 1) -> [Help 1]"


没装 protoc,见前面一篇文章,去Google下吧。

http://protobuf.googlecode.com/files/protobuf-2.4.1.tar.gz


3)Failed to execute goal org.codehaus.mojo:make-maven-plugin:1.0-beta-1:configure (compile) on project hadoop-common: ./configure returned an exit value != 0. Aborting build; see command output above for more information. -> [Help
1]


没装zlib

yum install zlib

yum install zlib-devel


4)ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.6:run (site) on project hadoop-common: An Ant BuildException has occured: Execute failed: java.io.IOException: Cannot run program "${env.FORREST_HOME}/bin/forrest"
(in directory "/root/hadoop/release-0.23.0-rc1/hadoop-common-project/hadoop-common/target/docs-src"): java.io.IOException: error=2, No such file or directory -> [Help 1]

没装forrest.

Apache forrest.

http://forrest.apache.org/mirrors.cgi

安装并且设置FORREST_HOME 到profile里面。

.......


5)ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.6:run (site) on project hadoop-common: An Ant BuildException has occured: stylesheet /root/hadoop/release-0.23.0-rc1/hadoop-common-project/hadoop-common/${env.FINDBUGS_HOME}/src/xsl/default.xsl
doesn't exist. -> [Help 1]

没装findbug

http://findbugs.sourceforge.net/downloads.html

6)[ERROR] Failed to execute goal org.codehaus.mojo:make-maven-plugin:1.0-beta-1:test (test) on project hadoop-yarn-server-nodemanager: make returned an exit value != 0. Aborting build; see command output above for more information. -> [Help 1]

不要以root身份执行编译!。。换身份,重来吧。

抱歉!评论已关闭.