Hadoop 0.23编译常见错误

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下吧。

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.

安装并且设置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

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

下面关于Hadoop的文章您也可能喜欢,不妨看看:

Ubuntu14.04下Hadoop2.4.1单机/伪分布式安装配置教程 

CentOS安装和配置Hadoop2.2.0 

Ubuntu 13.04上搭建Hadoop环境

Ubuntu 12.10 +Hadoop 1.2.1版本集群配置

Ubuntu上搭建Hadoop环境(单机模式+伪分布模式)

Ubuntu下Hadoop环境的配置

单机版搭建Hadoop环境图文教程详解

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/2c8c4337ceb6d4c7f4d2d8149a5946ed.html