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
时间: 2024-10-13 21:22:04