詳細參照源碼路徑下的BUILDING.txt文件linux
Centos 6.5 x64c++
hadoop 2.6.0maven
jdk 1.7oop
protobuf-2.5.0spa
maven-3.0.5code
set environmentblog
export JAVA_HOME=/home/linux/jdk export CLASSPATH=JAVA_HOME/lib/tools.jar export PROTOC_HOME=/home/linux/protobuf export MAVEN_HOME=/home/linux/maven export PATH=$PROTOC_HOME/bin:$JAVA_HOME/bin:$MAVEN_HOME/bin:$PATH
sudo yum install gccip
sudo yum install gcc-c++hadoop
sudo yum install makessl
cd protobuf-2.5.0
sudo ./configure
sudo make
sudo make install
sudo yum install cmake
sudo yum install openssl-devel
sudo yum install ncurses-devel
cd hadoop-2.6.0
mvn package -DskipTests -Pdist,native
編譯生成的部署包的位置:
hadoop-2.6.0-src/hadoop-dist/target/
名稱爲:hadoop-2.6.0