Centos 6.5 X64 环境下编译 hadoop 2.6.0 --已验证

详细参照源码路径下的BUILDING.txt文件

Centos 6.5 x64

hadoop 2.6.0

jdk 1.7

protobuf-2.5.0

maven-3.0.5

set environment

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 gcc

sudo yum install gcc-c++

sudo yum install make

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

Centos 6.5 X64 环境下编译 hadoop 2.6.0 --已验证

编译生成的部署包的位置:

hadoop-2.6.0-src/hadoop-dist/target/

名称为:hadoop-2.6.0

上一篇:python实验一:画图


下一篇:CentOS 7.0源码包搭建LNMP方法分享(实际环境下)