标签:style blog http java get strong
今天来说说编译hadoop源码的事情吧~
1、首先下载源码
地址:http://mirror.bit.edu.cn/apache/hadoop/common/hadoop-2.4.0/
2、加压tar包到指定文件夹:/home/hadoop/soft/hadoop
tar zxvf hadoop-2.4.0-src.tar.gz
<localRepository>/home/hadoop/soft/repo</localRepository>
vim /etc/profile
export JAVA_HOME=/usr/java/jdk1.7.0_60 export PATH="$JAVA_HOME/bin:$PATH" export MAVEN_HOME=/home/hadoop/soft/apache-maven-3.2.1 export PATH="$MAVEN_HOME/bin:$PATH" export ANT_HOME=/home/hadoop/soft/apache-ant-1.9.4 export PATH="$ANT_HOME/bin:$PATH" export HADOOP_PREFIX=/home/hadoop/soft/hadoop/hadoop-2.4.0 export CLASSPATH=".:$JAVA_HOME/lib:$CLASSPATH" export PATH="$JAVA_HOME/:$HADOOP_PREFIX/bin:$PATH" export HADOOP_PREFIX PATH CLASSPATH
yum install openssl
yum install cmake
wget https://protobuf.googlecode.com/files/protobuf-2.5.0.tar.gz
tar zxvf protobuf-2.5.0.tar.gz进入解压的文件夹中,执行以下命令:
sudo ./configure sudo make sudo make check sudo make install sudo ldconfig验证:
mvn package -Pdist,native -DskipTests -Dtar
CentOS6.5 Linux上面编译Hadoop2.4源码,布布扣,bubuko.com
CentOS6.5 Linux上面编译Hadoop2.4源码
标签:style blog http java get strong
原文地址:http://blog.csdn.net/enson16855/article/details/35568049