Hadoop 0.23编译常见错误

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身份执行编译!。。换身份,重来吧。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值