标签:hadoop
yum install svn -y yum install autoconfautomake libtool cmake -y yum install ncurses-devel -y yum install openssl-devel -y yum install gcc* -y
通过写好xml会简化繁琐的编译流程..
网址 http://maven.apache.org/
wget http://mirrors.hust.edu.cn/apache/maven/maven-3/3.2.3/binaries/apache-maven-3.2.3-bin.tar.gz tar xf apache-maven-3.2.3-bin.tar.gz mv apache-maven-3.2.3 /usr/local/
vi .bash_profile PATH=$PATH:$HOME/bin:/usr/local/apache-maven-3.2.3/bin JAVA_HOME=/usr/java/jdk1.7.0_67 export JAVA_HOME export PATH
这是google的一个用于数据交换格式的..
下载地址: https://code.google.com/p/protobuf/downloads/list
wget https://protobuf.googlecode.com/files/protobuf-2.5.0.tar.gz tar xf protobuf-2.5.0.tar.gz cd protobuf-2.5.0 ./configure make make install ls -l /usr/local/bin/protoc
svn地址: http://svn.apache.org/repos/asf/hadoop/common/tags/
svn checkout http://svn.apache.org/repos/asf/hadoop/common/tags/release-2.2.0/ cd release-2.2.0 mvn package -Pdist,native -DskipTests -Dtar
编译后的结果存在release-2.2.0/hadoop-dist/target
可以在release-2.2.0/hadoop-dist/target/hadoop-2.2.0/lib/native 找到编译好的本地库
本文出自 “晓风残月” 博客,请务必保留此出处http://kinda22.blog.51cto.com/2969503/1582556
标签:hadoop
原文地址:http://kinda22.blog.51cto.com/2969503/1582556