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

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

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

名称为:hadoop-2.6.0

posted @ 2016-01-08 19:20  大数据从业者FelixZh  阅读(309)  评论(0编辑  收藏  举报