Hadoop 0.23 compilation Common Errors
Hadoop 0.23 compilation Common Errors
0) if all the following errors occur .. It indicates that your development environment is not well developed. Use the following command.
Yum groupinstall "Development Libraries"
1) ERROR: "[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]"
This is because native parameters are included during compilation, but autotool is not installed. Under CentOS.
Yum install autoconf
Yum install automake
Yum install libtool <--- this contains autoreconf
If it doesn't work, just compile-P-cbuild. Do not use 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 is not installed. See the previous article. go to Google.
Http://protobuf.googlecode.com/files/protobuf-2.4.1.tar.gz
3) Failed to execute goal org. codehaus. mojo: make-maven-plug in: 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 Not Installed
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 is not installed.
Apache forrest.
Http://forrest.apache.org/mirrors.cgi
Install and set FORREST_HOME to 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 Not Installed
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]
Do not compile as root !.. Change your identity.
You may also like the following articles about Hadoop:
Tutorial on standalone/pseudo-distributed installation and configuration of Hadoop2.4.1 under Ubuntu14.04
Install and configure Hadoop2.2.0 on CentOS
Build a Hadoop environment on Ubuntu 13.04
Cluster configuration for Ubuntu 12.10 + Hadoop 1.2.1
Build a Hadoop environment on Ubuntu (standalone mode + pseudo Distribution Mode)
Configuration of Hadoop environment in Ubuntu
Detailed tutorial on creating a Hadoop environment for standalone Edition