CentOS6.5下Hadoop的編譯
Hadoop介紹
(1) hadoop.apache.org
(2) 狹義: 軟體(HDFS、MapReduce、Yarn)
褒義: 以hadoop為主的生態圈
(3)Hadoop1.x
HDFS : 分散式檔案系統,儲存
MapReduce: 分散式計算+資源排程和作業排程
(4)Hadoop2.x
HDFS : 儲存
MapReduce : 計算
Yarn : YetAnother Resource Negotiator 資源排程和作業排程平臺
1.檢查是否有無正在執行的hadoop.
ps –ef|grep hadoop find / -name hadoop
2在/opt目錄下建立sourcecode software 兩個資料夾。
3.上傳hadoop的tar包到sourcecode.
4.解壓hadoop-2.8.1-src.tar.gz。
tar -xzvf hadoop-2.8.1-src.tar.gz
5.檢視Hadoop編譯的環境cd hadoop-2.8.1-src>>cat BUILDING.txt
6.安裝JDK
7.配置JDK環境變數在/etc/profile
8上傳maven包
9.配置maven環境變數---/etc/profile
10.上傳安裝protobuf-2.5.0.tar
11Findbugs安裝
[root@hadoop01 software]# rz
rz waiting to receive.
Starting zmodem transfer. Press Ctrl+C to cancel.
Transferring findbugs-1.3.9.zip...
100% 7369 KB 7369 KB/sec 00:00:01 0 Errors
[root@hadoop01 software]# unzip findbugs-1.3.9.zip
[root@hadoop01 software]# vi /etc/profile
export FINDBUGS_HOME=/opt/software/findbugs-1.3.9
export PATH=$FINDBUGS_HOME/bin:$MAVEN_HOME/bin:$JAVA_HOME/bin:$PATH
[root@hadoop01 software]#
[root@hadoop01 software]# source /etc/profile
[root@hadoop01 software]# findbugs -version
1.3.9
[root@hadoop001 software]#
[root@hadoop01 sourcecode]# cd hadoop-2.8.1-src
[root@hadoop01 hadoop-2.8.1-src]# mvn clean package -Pdist,native -DskipTests -Dtar
[INFO] --- maven-site-plugin:3.5:attach-descriptor (attach-descriptor) @ hadoop-dist ---
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Apache Hadoop Main ................................. SUCCESS [ 7.770 s]
[INFO] Apache Hadoop Build Tools .......................... SUCCESS [ 4.990 s]
[INFO] Apache Hadoop Project POM .......................... SUCCESS [ 4.920 s]
[INFO] Apache Hadoop Annotations .......................... SUCCESS [ 12.936 s]
[INFO] Apache Hadoop Assemblies ........................... SUCCESS [ 0.809 s]
[INFO] Apache Hadoop Project Dist POM ..................... SUCCESS [ 5.013 s]
[INFO] Apache Hadoop Maven Plugins ........................ SUCCESS [ 17.617 s]
[INFO] Apache Hadoop MiniKDC .............................. SUCCESS [ 23.551 s]
[INFO] Apache Hadoop Auth ................................. SUCCESS [ 26.352 s]
[INFO] Apache Hadoop Auth Examples ........................ SUCCESS [ 10.305 s]
[INFO] Apache Hadoop Common ............................... SUCCESS [05:58 min]
[INFO] Apache Hadoop NFS .................................. SUCCESS [ 19.105 s]
[INFO] Apache Hadoop KMS .................................. SUCCESS [ 27.479 s]
[INFO] Apache Hadoop Common Project ....................... SUCCESS [ 0.174 s]
[INFO] Apache Hadoop HDFS Client .......................... SUCCESS [01:32 min]
[INFO] Apache Hadoop HDFS ................................. SUCCESS [06:42 min]
[INFO] Apache Hadoop HDFS Native Client ................... SUCCESS [ 20.370 s]
[INFO] Apache Hadoop HttpFS ............................... SUCCESS [ 40.720 s]
[INFO] Apache Hadoop HDFS BookKeeper Journal .............. SUCCESS [ 21.298 s]
[INFO] Apache Hadoop HDFS-NFS ............................. SUCCESS [ 11.818 s]
[INFO] Apache Hadoop HDFS Project ......................... SUCCESS [ 0.148 s]
[INFO] Apache Hadoop YARN ................................. SUCCESS [ 0.192 s]
[INFO] Apache Hadoop YARN API ............................. SUCCESS [ 41.517 s]
[INFO] Apache Hadoop YARN Common .......................... SUCCESS [01:19 min]
[INFO] Apache Hadoop YARN Server .......................... SUCCESS [ 0.192 s]
[INFO] Apache Hadoop YARN Server Common ................... SUCCESS [ 19.421 s]
[INFO] Apache Hadoop YARN NodeManager ..................... SUCCESS [ 42.398 s]
[INFO] Apache Hadoop YARN Web Proxy ....................... SUCCESS [ 8.925 s]
[INFO] Apache Hadoop YARN ApplicationHistoryService ....... SUCCESS [ 16.120 s]
[INFO] Apache Hadoop YARN ResourceManager ................. SUCCESS [ 57.415 s]
[INFO] Apache Hadoop YARN Server Tests .................... SUCCESS [ 3.869 s]
[INFO] Apache Hadoop YARN Client .......................... SUCCESS [ 14.325 s]
[INFO] Apache Hadoop YARN SharedCacheManager .............. SUCCESS [ 11.814 s]
[INFO] Apache Hadoop YARN Timeline Plugin Storage ......... SUCCESS [ 10.027 s]
[INFO] Apache Hadoop YARN Applications .................... SUCCESS [ 0.276 s]
[INFO] Apache Hadoop YARN DistributedShell ................ SUCCESS [ 8.333 s]
[INFO] Apache Hadoop YARN Unmanaged Am Launcher ........... SUCCESS [ 5.473 s]
[INFO] Apache Hadoop YARN Site ............................ SUCCESS [ 0.160 s]
[INFO] Apache Hadoop YARN Registry ........................ SUCCESS [ 13.204 s]
[INFO] Apache Hadoop YARN Project ......................... SUCCESS [ 8.106 s]
[INFO] Apache Hadoop MapReduce Client ..................... SUCCESS [ 0.514 s]
[INFO] Apache Hadoop MapReduce Core ....................... SUCCESS [01:09 min]
[INFO] Apache Hadoop MapReduce Common ..................... SUCCESS [ 40.479 s]
[INFO] Apache Hadoop MapReduce Shuffle .................... SUCCESS [ 10.304 s]
[INFO] Apache Hadoop MapReduce App ........................ SUCCESS [ 27.335 s]
[INFO] Apache Hadoop MapReduce HistoryServer .............. SUCCESS [ 19.910 s]
[INFO] Apache Hadoop MapReduce JobClient .................. SUCCESS [ 16.657 s]
[INFO] Apache Hadoop MapReduce HistoryServer Plugins ...... SUCCESS [ 4.591 s]
[INFO] Apache Hadoop MapReduce Examples ................... SUCCESS [ 12.346 s]
[INFO] Apache Hadoop MapReduce ............................ SUCCESS [ 5.966 s]
[INFO] Apache Hadoop MapReduce Streaming .................. SUCCESS [ 7.940 s]
[INFO] Apache Hadoop Distributed Copy ..................... SUCCESS [ 15.245 s]
[INFO] Apache Hadoop Archives ............................. SUCCESS [ 5.380 s]
[INFO] Apache Hadoop Archive Logs ......................... SUCCESS [ 5.812 s]
[INFO] Apache Hadoop Rumen ................................ SUCCESS [ 11.785 s]
[INFO] Apache Hadoop Gridmix .............................. SUCCESS [ 9.890 s]
[INFO] Apache Hadoop Data Join ............................ SUCCESS [ 5.784 s]
[INFO] Apache Hadoop Ant Tasks ............................ SUCCESS [ 3.254 s]
[INFO] Apache Hadoop Extras ............................... SUCCESS [ 5.495 s]
[INFO] Apache Hadoop Pipes ................................ SUCCESS [ 10.630 s]
[INFO] Apache Hadoop OpenStack support .................... SUCCESS [ 11.234 s]
[INFO] Apache Hadoop Amazon Web Services support .......... SUCCESS [ 14.060 s]
[INFO] Apache Hadoop Azure support ........................ SUCCESS [ 10.535 s]
[INFO] Apache Hadoop Client ............................... SUCCESS [ 13.519 s]
[INFO] Apache Hadoop Mini-Cluster ......................... SUCCESS [ 2.164 s]
[INFO] Apache Hadoop Scheduler Load Simulator ............. SUCCESS [ 10.405 s]
[INFO] Apache Hadoop Tools Dist ........................... SUCCESS [ 11.514 s]
[INFO] Apache Hadoop Azure Data Lake support .............. SUCCESS [ 9.201 s]
[INFO] Apache Hadoop Tools ................................ SUCCESS [ 0.129 s]
[INFO] Apache Hadoop Distribution ......................... SUCCESS [01:07 min]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 31:41 min
[INFO] Finished at: 2017-12-10T11:55:28+08:00
[INFO] Final Memory: 166M/494M
[INFO] ------------------------------------------------------------------------
[root@rzdatahadoop01 hadoop-2.8.1-src]#
注:download需要3.5h
不想download就使用.m2.tar.gz -->解壓-->root家目錄
13編譯好的tar包
/opt/sourcecode/hadoop-2.8.1-src/hadoop-dist/target/hadoop-2.8.1.tar.gz
提醒:
1、有時候編譯過程中會出現下載某個包的時間太久,這是由於連線網站的過程中會出現假死,
此時按ctrl+c,重新執行編譯命令。
2、如果出現缺少了某個檔案的情況,則要先清理maven(使用命令 mvn clean) 再重新編譯。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/31496956/viewspace-2148647/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- CentOS6.5實現Hadoop_2.8.1編譯CentOSHadoop編譯
- CentOS6.5實現Hadoop_2.8.1編譯及HDFS偽分散式部署CentOSHadoop編譯分散式
- hadoop編譯—+2.x編譯Hadoop編譯
- Hadoop - macOS 上編譯 Hadoop 3.2.1HadoopMac編譯
- Mysql5.6 for Centos6.5原始碼編譯安裝MySqlCentOS原始碼編譯
- hadoop64位系統編譯Hadoop編譯
- Centos7系統編譯Hadoop3.3.4CentOS編譯Hadoop
- CDH impala for Apache HADOOP 安裝編譯步驟.ApacheHadoop編譯
- Elam的caffe筆記之配置篇(一):CentOS6.5編譯安裝gcc4.8.2筆記CentOS編譯GC
- Centos6.5映象下載CentOS
- 奈學教育:Hadoop原始碼編譯全流程分享Hadoop原始碼編譯
- Windows下編譯TriangleWindows編譯
- LINUX下編譯TriangleLinux編譯
- Windows下編譯OpenOCDWindows編譯
- 在Windows下編譯WebRTCWindows編譯Web
- VS CODE下編譯ROS程式編譯ROS
- windows下編譯tflite-runtimeWindows編譯
- CentOS 下編譯安裝 NginxCentOS編譯Nginx
- CentOS 下編譯安裝 apacheCentOS編譯Apache
- windows下編譯安裝thriftWindows編譯
- macOS 下編譯 cef3Mac編譯
- Linux下C語言編譯的問題LinuxC語言編譯
- 編譯Android下可執行命令的FFmpeg編譯Android
- Linux下nginx編譯安裝教程和編譯引數詳解LinuxNginx編譯
- CentOS6.5基於Hadoop使用者的Yarn偽分散式部署(a Single Node Cluster)CentOSHadoopYarn分散式
- CentOS6.5基於Hadoop使用者的HDFS偽分散式部署(a Single Node Cluster)CentOSHadoop分散式
- Windows下CMake編譯安裝OpenCVWindows編譯OpenCV
- 在linux下編譯hibernate筆記Linux編譯筆記
- ollvm在VS2017下編譯LVM編譯
- VLC在ubuntu環境下編譯編譯
- Centos下Ambari2.7.5的編譯和安裝CentOS編譯
- 使用CMake命令編譯Android平臺下的包編譯Android
- win10環境下fortran怎麼編譯_win10環境下fortran如何編譯Win10編譯
- cmake編譯指定自己編譯的庫路徑編譯
- 編譯器的自展和自舉、交叉編譯編譯
- SCSS 的編譯CSS編譯
- C2000 編譯器下載地址編譯
- JAVA編譯軟體IDEA下載(2024)Java編譯Idea
- 如何在Windows下使用make編譯MakefileWindows編譯