2014年9月27日 星期六

[研究] hadoop-2.5.1-src.tar.gz 快速編譯安裝程式(CentOS 7.0 x86_64)

[研究] hadoop-2.5.1-src.tar.gz 快速編譯安裝程式(CentOS 7.0 x86_64)

2014-09-27

下載
http://www.apache.org/dyn/closer.cgi/hadoop/common/
http://apache.stu.edu.tw/hadoop/common/hadoop-2.5.0/hadoop-2.5.0.tar.gz

程式內容如下

#!/bin/bash

echo -e "\033[31m"
echo -e "Program : Hadoop-2.5.1_CentOS-7.0-x86_64-Compile.sh "
echo -e "Hadoop 2.5.1 Compile Shell Script (CentOS 7.0 x86_64) "
echo -e "by Shau-Rong Lu 2014-09-27 "
echo -e "\033[0m"

cd /usr/local/src
#yum -y groupinstall  "Development tools"
yum -y install gcc  gcc-c++  svn  cmake git zlib zlib-devel openssl openssl-devel rsync java-1.7.0-openjdk.x86_64 java-1.7.0-openjdk-devel.x86_64  make  wget

# echo "********** Install OpenJDK **********"

yum -y install  java
# or
#yum -y install java-1.7.0-openjdk

yum -y install  java-1.7.0-openjdk-devel

#export JAVA_HOME=/usr
#echo 'export JAVA_HOME=/usr' >> /etc/profile
#echo 'export JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.65-2.5.1.2.el7_0.x86_64' >> /etc/profile
echo 'export JAVA_HOME=/usr/lib/jvm/java' >> /etc/profile
echo 'export PATH=$PATH:$JAVA_HOME/bin' >> /etc/profile
echo 'export CLASSPATH=$JAVA_HOME/jre/lib/ext:$JAVA_HOME/lib/tools.jar' >> /etc/profile

source /etc/profile
java -version
#export | grep JAVA
#export | grep jdk

echo "********** Install Apache Maven 3.0.5 (yum) **********"

yum -y install maven

# mvn -version

echo "********** Install FindBugs 3.0.0 **********"

cd  /usr/local/src
if [ ! -s findbugs-3.0.0.tar.gz ]; then
  wget  http://jaist.dl.sourceforge.net/project/findbugs/findbugs/3.0.0/findbugs-3.0.0.tar.gz
fi
tar zxvf findbugs-3.0.0.tar.gz -C /usr/local/
ln -s /usr/local/findbugs-3.0.0/bin/findbugs  /usr/bin/findbugs
echo 'export FINDBUGS_HOME=/usr/local/findbugs-3.0.0' >> /etc/profile
echo 'export PATH=$PATH:$FINDBUGS_HOME/bin' >> /etc/profile
source /etc/profile

#export | grep FINDBUGS_HOME
#export | grep PATH
#read -n 1 -p "Press Enter to continue..."

echo "********** Install Protoc 2.5.0 **********"
# https://code.google.com/p/protobuf/
# https://code.google.com/p/protobuf/downloads/list

cd  /usr/local/src
if [ ! -s protobuf-2.5.0.tar.gz ]; then
  wget https://protobuf.googlecode.com/files/protobuf-2.5.0.tar.gz
fi
tar zxvf protobuf-2.5.0.tar.gz -C /usr/local/src
cd /usr/local/src/protobuf-2.5.0
./configure
make
make install
ln -s /usr/local/bin/protoc /usr/bin/protoc
echo 'export PROTO_HOME=/usr/local/' >> /etc/profile
echo 'export PATH=$PATH:$PROTO_HOME/bin' >> /etc/profile
source /etc/profile
#read -n 1 -p "Press Enter to continue..."

echo "********** Compile Hadoop **********"

cd  /usr/local/src
if [ ! -s hhadoop-2.5.1-src.tar.gz ]; then
  wget  http://ftp.tc.edu.tw/pub/Apache/hadoop/common/hadoop-2.5.1/hadoop-2.5.1-src.tar.gz
fi
tar zxvf hadoop-2.5.1-src.tar.gz -C /usr/local/src
cd  /usr/local/src/hadoop-2.5.1-src/

#mvn clean
mvn package -Pdist,native -DskipTests -Dtar
#read -n 1 -p "Press Enter to continue..."


執行結果


[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Apache Hadoop Main ................................ SUCCESS [2:10.013s]
[INFO] Apache Hadoop Project POM ......................... SUCCESS [50.174s]
[INFO] Apache Hadoop Annotations ......................... SUCCESS [29.702s]
[INFO] Apache Hadoop Assemblies .......................... SUCCESS [0.335s]
[INFO] Apache Hadoop Project Dist POM .................... SUCCESS [28.309s]
[INFO] Apache Hadoop Maven Plugins ....................... SUCCESS [40.791s]
[INFO] Apache Hadoop MiniKDC ............................. SUCCESS [3:00.311s]
[INFO] Apache Hadoop Auth ................................ SUCCESS [39.886s]
[INFO] Apache Hadoop Auth Examples ....................... SUCCESS [11.284s]
[INFO] Apache Hadoop Common .............................. SUCCESS [3:57.397s]
[INFO] Apache Hadoop NFS ................................. SUCCESS [7.097s]
[INFO] Apache Hadoop Common Project ...................... SUCCESS [0.021s]
[INFO] Apache Hadoop HDFS ................................ SUCCESS [3:24.778s]
[INFO] Apache Hadoop HttpFS .............................. SUCCESS [52.574s]
[INFO] Apache Hadoop HDFS BookKeeper Journal ............. SUCCESS [31.608s]
[INFO] Apache Hadoop HDFS-NFS ............................ SUCCESS [4.112s]
[INFO] Apache Hadoop HDFS Project ........................ SUCCESS [0.025s]
[INFO] hadoop-yarn ....................................... SUCCESS [0.022s]
[INFO] hadoop-yarn-api ................................... SUCCESS [1:00.165s]
[INFO] hadoop-yarn-common ................................ SUCCESS [51.288s]
[INFO] hadoop-yarn-server ................................ SUCCESS [0.031s]
[INFO] hadoop-yarn-server-common ......................... SUCCESS [21.424s]
[INFO] hadoop-yarn-server-nodemanager .................... SUCCESS [56.444s]
[INFO] hadoop-yarn-server-web-proxy ...................... SUCCESS [4.565s]
[INFO] hadoop-yarn-server-applicationhistoryservice ...... SUCCESS [7.043s]
[INFO] hadoop-yarn-server-resourcemanager ................ SUCCESS [14.625s]
[INFO] hadoop-yarn-server-tests .......................... SUCCESS [1.109s]
[INFO] hadoop-yarn-client ................................ SUCCESS [5.830s]
[INFO] hadoop-yarn-applications .......................... SUCCESS [0.044s]
[INFO] hadoop-yarn-applications-distributedshell ......... SUCCESS [3.352s]
[INFO] hadoop-yarn-applications-unmanaged-am-launcher .... SUCCESS [2.298s]
[INFO] hadoop-yarn-site .................................. SUCCESS [0.037s]
[INFO] hadoop-yarn-project ............................... SUCCESS [4.523s]
[INFO] hadoop-mapreduce-client ........................... SUCCESS [0.057s]
[INFO] hadoop-mapreduce-client-core ...................... SUCCESS [22.938s]
[INFO] hadoop-mapreduce-client-common .................... SUCCESS [17.266s]
[INFO] hadoop-mapreduce-client-shuffle ................... SUCCESS [4.292s]
[INFO] hadoop-mapreduce-client-app ....................... SUCCESS [11.857s]
[INFO] hadoop-mapreduce-client-hs ........................ SUCCESS [9.558s]
[INFO] hadoop-mapreduce-client-jobclient ................. SUCCESS [14.674s]
[INFO] hadoop-mapreduce-client-hs-plugins ................ SUCCESS [1.812s]
[INFO] Apache Hadoop MapReduce Examples .................. SUCCESS [6.743s]
[INFO] hadoop-mapreduce .................................. SUCCESS [3.861s]
[INFO] Apache Hadoop MapReduce Streaming ................. SUCCESS [10.350s]
[INFO] Apache Hadoop Distributed Copy .................... SUCCESS [18.868s]
[INFO] Apache Hadoop Archives ............................ SUCCESS [2.024s]
[INFO] Apache Hadoop Rumen ............................... SUCCESS [7.014s]
[INFO] Apache Hadoop Gridmix ............................. SUCCESS [4.974s]
[INFO] Apache Hadoop Data Join ........................... SUCCESS [2.891s]
[INFO] Apache Hadoop Extras .............................. SUCCESS [2.984s]
[INFO] Apache Hadoop Pipes ............................... SUCCESS [5.990s]
[INFO] Apache Hadoop OpenStack support ................... SUCCESS [5.098s]
[INFO] Apache Hadoop Client .............................. SUCCESS [7.264s]
[INFO] Apache Hadoop Mini-Cluster ........................ SUCCESS [0.083s]
[INFO] Apache Hadoop Scheduler Load Simulator ............ SUCCESS [11.020s]
[INFO] Apache Hadoop Tools Dist .......................... SUCCESS [4.964s]
[INFO] Apache Hadoop Tools ............................... SUCCESS [0.023s]
[INFO] Apache Hadoop Distribution ........................ SUCCESS [24.629s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 25:31.849s
[INFO] Finished at: Sat Sep 27 09:32:07 CST 2014
[INFO] Final Memory: 163M/474M
[INFO] ------------------------------------------------------------------------
[root@localhost ~]#

(完)

相關

[研究] hadoop-2.5.1-src.tar.gz 快速編譯安裝程式(CentOS 7.0 x86_64)
http://shaurong.blogspot.com/2014/09/hadoop-251-srctargz-centos-70-x8664.html

[研究] hadoop-2.5.0-src.tar.gz 快速編譯安裝程式(CentOS 7.0 x86_64)
http://shaurong.blogspot.com/2014/08/hadoop-250-srctargz-centos-70-x8664.html
http://forum.icst.org.tw/phpbb/viewtopic.php?f=26&t=81015
http://download.ithome.com.tw/article/index/id/2722

[研究] Hadoop 2.5.0 安裝 (CentOS 7.0 x86_64)
http://shaurong.blogspot.com/2014/08/hadoop-250-centos-70-x8664.html
http://forum.icst.org.tw/phpbb/viewtopic.php?f=26&t=81014
http://download.ithome.com.tw/article/index/id/2721

[研究] Hadoop 2.4.1 安裝 (CentOS 7.0 x86_64)
http://shaurong.blogspot.com/2014/08/hadoop-241-centos-70-x8664.html

[研究] hadoop-2.4.1-src.tar.gz 快速編譯安裝程式(CentOS 7.0 x86_64)
http://shaurong.blogspot.com/2014/08/hadoop-241-srctargz-centos-70-x8664.html
http://download.ithome.com.tw/article/index/id/2375

[研究] hadoop-2.2.0-src.tar.gz 快速編譯安裝程式(二)(CentOS 6.5 x86_64)
http://shaurong.blogspot.com/2014/02/hadoop-220-srctargz-centos-65-x8664_8080.html

[研究] hadoop-2.2.0-src.tar.gz 快速編譯安裝程式(CentOS 6.5 x86_64)
http://shaurong.blogspot.com/2014/02/hadoop-220-srctargz-centos-65-x8664_7.html

[研究] hadoop-2.2.0-src.tar.gz 編譯研究(CentOS 6.5 x86_64)
http://shaurong.blogspot.com/2014/02/hadoop-220-srctargz-centos-65-x8664.html

[研究] Hadoop 2.2.0 編譯 (CentOS 6.4 x64)
http://shaurong.blogspot.tw/2013/11/hadoop-220-centos-64-x64.html

[研究] Hadoop 2.2.0 Single Cluster 安裝 (二)(CentOS 6.4 x64)
http://shaurong.blogspot.tw/2013/11/hadoop-220-single-cluster-centos-64-x64_7.html

[研究] Hadoop 2.2.0 Single Cluster 安裝 (一)(CentOS 6.4 x64)
http://shaurong.blogspot.tw/2013/11/hadoop-220-single-cluster-centos-64-x64.html

[研究] Hadoop 1.2.1 (rpm)安裝 (CentOS 6.4 x64)
http://shaurong.blogspot.tw/2013/10/hadoop-121-rpm-centos-64-x64.html

[研究] Hadoop 1.2.1 (bin)安裝 (CentOS 6.4 x64)
http://shaurong.blogspot.tw/2013/07/hadoop-112-centos-64-x64.html

[研究] Hadoop 1.2.1 安裝 (CentOS 6.4 x64)
http://forum.icst.org.tw/phpbb/viewtopic.php?t=80035

[研究] 雲端軟體 Hadoop 1.0.0 安裝 (CentOS 6.2 x86)
http://forum.icst.org.tw/phpbb/viewtopic.php?t=21166

[研究] 雲端軟體 Hadoop 0.20.2 安裝 (CentOS 5.5 x86)
http://forum.icst.org.tw/phpbb/viewtopic.php?t=18513

[研究] 雲端軟體 Hadoop 0.20.2 安裝 (CentOS 5.4 x86)


沒有留言:

張貼留言