Prepare the compilation environment:
1Install cmake:
Sudo wget http://www.cmake.org/files/v2.8/cmake-2.8.12.2.tar.gz
# Tar-zxvf cmake-2.8.12.2.tar.gz
# Cd cmake-2.8.12.2
#./Configure
# Gmake
# Gmake install
2Install protobuf:
Protobuf-2.5.0.tar.gz
Tar-xvf protobuf-2.5.0.tar.bz2
CD protobuf-2.5.0
./Configure
Make & make install
Protoc -- version (if the version number is correctly displayed, the installation is correct)
3Install Maven:
Apache-maven-3.0.5-bin.tar.gz
Export maven_home =/opt/maven3.0.5
Export Path = $ path: $ maven_home/bin
Export classpath =.: $ classpath: $ maven_home/lib
4Install findbugs(Select)
Tar-zxfv Co., findbugs-2.0.2.tar.gz.
Music findbugs-2.0.2 // usr/local/findbugs
5Install the following dependencies:
Yum install gcc
Yum install gcc-C ++
Yum install make
Yum install OpenSSL-devel
Yum install ncurses-devel
6,Compile:
Go to hadoopSource package location:
MVN clean-dskiptests
MVN package-pdist, native-dskiptests-dtar
Compile hadoop-2.5.0 under centos6.5 (64bit)