首页 > 代码库 > centos6.5(64bit)下编译hadoop-2.5.0

centos6.5(64bit)下编译hadoop-2.5.0

编译环境准备:

1、安装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

2、安装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((如果能正确显示版本号,则说明安装正确)

3、安装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

4、安装findbugs:(选择)

tar -zxfv findbugs-2.0.2.tar.gz

mv findbugs-2.0.2/ /usr/local/findbugs

5、安装一下依赖:

yum install gcc

yum install gcc-c++

yum install make

yum install openssl-devel

yum install ncurses-devel

6、编译:

进入hadoop源码包位置:

mvn clean -DskipTests

mvn package -Pdist,native -DskipTests -Dtar

centos6.5(64bit)下编译hadoop-2.5.0