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

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 --已验证_第1张图片

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

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

名称为:hadoop-2.6.0

你可能感兴趣的:(Centos 6.5 X64 环境下编译 hadoop 2.6.0 --已验证)