`
bit1129
  • 浏览: 1067852 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

【Hadoop三】Centos7_x86_64部署Hadoop集群之编译Hadoop源代码

 
阅读更多
 

编译必需的软件

  • Firebugs3.0.0
  • Maven3.2.3
  • Ant
  • JDK1.7.0_67
  • protobuf-2.5.0
  • Hadoop 2.5.2源码包

 

 

 

  • Firebugs3.0.0

 

http://sourceforge.jp/projects/sfnet_findbugs/downloads/findbugs/3.0.0/findbugs-3.0.0.tar.gz/
tar xzvf findbugs-3.0.0
export FINDBUGS_HOME=/home/hadoop/software/findbugs-3.0.0
export PATH=$FINDBUGS_HOME/bin:$PATH

 

第一次构件时没有安装FireBugs,结果报如下错误

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (site) on project hadoop-common: An Ant BuildException has occured: stylesheet /home/grid/hadoop-2.4.1/release-2.4.1/hadoop-common-project/hadoop-common/${env.FINDBUGS_HOME}/src/xsl/default.xsl doesn't exist.
[ERROR] around Ant part ...<xslt style="${env.FINDBUGS_HOME}/src/xsl/default.xsl" in="/home/grid/hadoop-2.4.1/release-2.4.1/hadoop-common-project/hadoop-common/target/findbugsXml.xml" out="/home/grid/hadoop-2.4.1/release-2.4.1/hadoop-common-project/hadoop-common/target/site/findbugs.html"/>... @ 44:267 in /home/grid/hadoop-2.4.1/release-2.4.1/hadoop-common-project/hadoop-common/target/antrun/build-main.xml
[ERROR] -> [Help 1]

 

 

  • Maven3.2.3

 

export M2_HOME=/home/hadoop/software/apache-maven-3.2.3
export PATH=$M2_HOME/bin:$PATH

 

  • Ant
export ANT_HOME=/home/hadoop/software/apache-ant-1.9.4
export PATH=$ANT_HOME/bin:$PATH

 

  • JDK1.7.0_67

 

export JAVA_HOME=/home/hadoop/software/jdk1.7.0_67
export PATH=$JAVA_HOME/bin:$PATH

 

  • protobuf-2.5.0

 

tar zxvf protobuf-2.5.0.tar.gz  
cd protobuf-2.5.0  
./configure --prefix=/usr/local  
make 
make install 

   

  • Hadoop 2.5.2源码包
tar zxvf hadoop-2.5.2-src.tar.gz  
cd hadoop-2.5.2-src  
mvn package -Pdist,native,docs -DskipTests -Dtar

  • 编译结果

Maven构建大概持续1个小时,构建的结果应该显示所有的构建都正确,如下所示:

 

[INFO] Reactor Summary:
[INFO] 
[INFO] Apache Hadoop Main ................................. SUCCESS [  3.460 s]
[INFO] Apache Hadoop Project POM .......................... SUCCESS [  2.440 s]
[INFO] Apache Hadoop Annotations .......................... SUCCESS [  8.027 s]
[INFO] Apache Hadoop Assemblies ........................... SUCCESS [  0.502 s]
[INFO] Apache Hadoop Project Dist POM ..................... SUCCESS [  6.744 s]
[INFO] Apache Hadoop Maven Plugins ........................ SUCCESS [  7.694 s]
[INFO] Apache Hadoop MiniKDC .............................. SUCCESS [ 10.779 s]
[INFO] Apache Hadoop Auth ................................. SUCCESS [01:08 min]
[INFO] Apache Hadoop Auth Examples ........................ SUCCESS [  3.241 s]
[INFO] Apache Hadoop Common ............................... SUCCESS [07:05 min]
[INFO] Apache Hadoop NFS .................................. SUCCESS [ 11.771 s]
[INFO] Apache Hadoop Common Project ....................... SUCCESS [  0.039 s]
[INFO] Apache Hadoop HDFS ................................. SUCCESS [14:51 min]
[INFO] Apache Hadoop HttpFS ............................... SUCCESS [05:01 min]
[INFO] Apache Hadoop HDFS BookKeeper Journal .............. SUCCESS [01:45 min]
[INFO] Apache Hadoop HDFS-NFS ............................. SUCCESS [  5.854 s]
[INFO] Apache Hadoop HDFS Project ......................... SUCCESS [  0.049 s]
[INFO] hadoop-yarn ........................................ SUCCESS [  0.066 s]
[INFO] hadoop-yarn-api .................................... SUCCESS [01:24 min]
[INFO] hadoop-yarn-common ................................. SUCCESS [01:32 min]
[INFO] hadoop-yarn-server ................................. SUCCESS [  0.096 s]
[INFO] hadoop-yarn-server-common .......................... SUCCESS [ 45.766 s]
[INFO] hadoop-yarn-server-nodemanager ..................... SUCCESS [01:45 min]
[INFO] hadoop-yarn-server-web-proxy ....................... SUCCESS [  4.768 s]
[INFO] hadoop-yarn-server-applicationhistoryservice ....... SUCCESS [  9.864 s]
[INFO] hadoop-yarn-server-resourcemanager ................. SUCCESS [ 23.242 s]
[INFO] hadoop-yarn-server-tests ........................... SUCCESS [  0.779 s]
[INFO] hadoop-yarn-client ................................. SUCCESS [  8.364 s]
[INFO] hadoop-yarn-applications ........................... SUCCESS [  0.068 s]
[INFO] hadoop-yarn-applications-distributedshell .......... SUCCESS [  4.872 s]
[INFO] hadoop-yarn-applications-unmanaged-am-launcher ..... SUCCESS [  2.523 s]
[INFO] hadoop-yarn-site ................................... SUCCESS [  0.051 s]
[INFO] hadoop-yarn-project ................................ SUCCESS [  9.001 s]
[INFO] hadoop-mapreduce-client ............................ SUCCESS [  0.124 s]
[INFO] hadoop-mapreduce-client-core ....................... SUCCESS [ 35.116 s]
[INFO] hadoop-mapreduce-client-common ..................... SUCCESS [ 27.584 s]
[INFO] hadoop-mapreduce-client-shuffle .................... SUCCESS [  7.655 s]
[INFO] hadoop-mapreduce-client-app ........................ SUCCESS [ 17.608 s]
[INFO] hadoop-mapreduce-client-hs ......................... SUCCESS [ 15.425 s]
[INFO] hadoop-mapreduce-client-jobclient .................. SUCCESS [ 39.538 s]
[INFO] hadoop-mapreduce-client-hs-plugins ................. SUCCESS [  2.738 s]
[INFO] Apache Hadoop MapReduce Examples ................... SUCCESS [  9.863 s]
[INFO] hadoop-mapreduce ................................... SUCCESS [  4.919 s]
[INFO] Apache Hadoop MapReduce Streaming .................. SUCCESS [ 19.115 s]
[INFO] Apache Hadoop Distributed Copy ..................... SUCCESS [ 12.291 s]
[INFO] Apache Hadoop Archives ............................. SUCCESS [  3.078 s]
[INFO] Apache Hadoop Rumen ................................ SUCCESS [ 11.125 s]
[INFO] Apache Hadoop Gridmix .............................. SUCCESS [  7.794 s]
[INFO] Apache Hadoop Data Join ............................ SUCCESS [  6.021 s]
[INFO] Apache Hadoop Extras ............................... SUCCESS [  5.012 s]
[INFO] Apache Hadoop Pipes ................................ SUCCESS [ 10.999 s]
[INFO] Apache Hadoop OpenStack support .................... SUCCESS [  8.789 s]
[INFO] Apache Hadoop Client ............................... SUCCESS [ 10.152 s]
[INFO] Apache Hadoop Mini-Cluster ......................... SUCCESS [  0.165 s]
[INFO] Apache Hadoop Scheduler Load Simulator ............. SUCCESS [ 18.100 s]
[INFO] Apache Hadoop Tools Dist ........................... SUCCESS [  6.974 s]
[INFO] Apache Hadoop Tools ................................ SUCCESS [  0.028 s]
[INFO] Apache Hadoop Distribution ......................... SUCCESS [02:37 min]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 44:48 min
[INFO] Finished at: 2014-12-03T08:12:48-05:00
[INFO] Final Memory: 144M/483M
[INFO] ------------------------------------------------------------------------

 

 

编译得到的安装包信息是

/home/hadoop/software/hadoop-2.5.2-src/hadoop-dist/target/hadoop-2.5.2.tar.gz
 
分享到:
评论

相关推荐

    hadoop2.4.1_centos7_64位本包

    【标题】"hadoop2.4.1_centos7_64位本包" 提供的是针对64位 CentOS 7 操作系统编译的 Hadoop 2.4.1 版本。Hadoop 是一个开源框架,主要用于分布式存储和处理大数据。在32位系统上,Hadoop 的二进制包可以直接使用,...

    cloudera-manager-centos7-cm5.10.0_x86_64.tar.gz

    我们拥有名为"cloudera-manager-centos7-cm5.10.0_x86_64.tar.gz"的压缩包,包含"cm-5.10.0"和"cloudera"两个子目录。首先,将压缩包解压到一个合适的目录,例如`/opt`: ```bash tar -zxvf cloudera-manager-...

    CentOS-7-x86-64-DVD-2207-02.iso

    CentOS-7-x86-64-DVD-2207-02.iso

    centos7 64位下编译Hadoop2.7.2源码库文件

    在Linux系统,特别是CentOS 7 64位环境下,编译开源软件如Hadoop是一项常见的任务,这对于理解和优化Hadoop在本地环境中的运行至关重要。Hadoop 2.7.2是一个稳定版本,包含了分布式存储(HDFS)和计算框架...

    Hadoop集群pdf文档

    Hadoop_Hadoop集群(第1期)_CentOS安装配置 Hadoop_Hadoop集群(第2期)_机器信息分布表 Hadoop_Hadoop集群(第4期)_SecureCRT使用 Hadoop_Hadoop集群(第5期)_Hadoop安装配置 Hadoop_Hadoop集群(第5期副刊)_...

    hadoop2.6.5-centos6.4_64 native lib

    CentOS-6.4-x86_64下,hadoop-2.6.5,支持snappy的native lib

    大数据教程之搭建Hadoop集群.zip_大数据环境搭建hadoop

    标题中的“大数据教程之搭建Hadoop集群.zip_大数据环境搭建hadoop”暗示了这是一个关于如何在大数据环境中构建Hadoop集群的教程。Hadoop是Apache软件基金会的一个开源项目,主要用于处理和存储海量数据,其分布式...

    hadoop2.6 centos6.5 伪分布式环境部署 实例

    本文将详细介绍如何在 CentOS 6.5 环境中部署 Hadoop 2.6 伪分布式环境,包括环境准备、Hadoop 安装、配置和测试等步骤。 环境准备 在开始部署 Hadoop 之前,需要准备好 Linux 环境。这里选择 CentOS 6.5 作为操作...

    hadoop-2.8.1 CentOS6.5编译的源码

    这将编译源代码并生成可部署的Hadoop组件。编译过程中,Maven会下载依赖库并构建各种模块,包括hadoop-common,这是Hadoop的核心组件。 五、替换lib库中的native文件夹 编译完成后,找到编译生成的`hadoop-common-...

    centos7_hadoop2.7.3_编译所需工具

    在centos7下编译hadoop2.7.3所需工具:apache-ant-1.9.4-bin.tar.gz、apache-maven-3.3.3-bin.tar.gz、findbugs-3.0.1.tar.gz、hadoop-2.7.3-src.tar.gz、protobuf-2.5.0.tar.gz

    CentOS7 Hadoop 2.7.X 安装部署.docx

    CentOS7 Hadoop 2.7.X 安装部署 本文档将指导您如何在 CentOS 7 上安装和部署 Hadoop 2.7.X。Hadoop 是一个开源的大数据处理框架,由 Apache 开发,旨在提供高效、可靠、可扩展的数据处理能力。 准备软件包 在...

    Hadoop安装教程_单机_伪分布式配置_CentOS6.4_Hadoop2.6

    根据给定文件的信息,本文将详细介绍如何在 CentOS 6.4 系统中安装 Hadoop 2.6.0,并实现单机模式与伪分布式模式的配置。 ### 环境准备 #### 操作系统环境 - **操作系统**: CentOS 6.4 32位 - **虚拟化平台**: ...

    Hadoop 2.6.5在CentOS6.8版本下的集群部署

    在本文中,我们将详细探讨如何在CentOS 6.8环境下部署Hadoop 2.6.5集群。Hadoop是一个开源分布式计算框架,主要用于处理和存储海量数据。它由两个主要组件构成:HDFS(Hadoop Distributed File System)和MapReduce...

    Hadoop安装教程_伪分布式配置_CentOS6.4_Hadoop2.61

    【Hadoop安装教程_伪分布式配置_CentOS6.4】 Hadoop是一个开源的分布式计算框架,由Apache基金会开发,主要用于处理和存储大规模数据。本教程针对的是在CentOS 6.4操作系统上安装Hadoop 2.6.0的伪分布式配置,这种...

    hadoop 64位下载 centos6.5环境编译

    在开始之前,你需要访问Apache Hadoop的官方网站,选择适合64位操作系统的源代码包进行下载。通常,下载的文件为.tar.gz格式,例如:`hadoop-x.x.x-src.tar.gz`,其中x.x.x表示Hadoop的版本号。 2. **安装Java开发...

    Hadoop-3.3.0-Centos7-64bit_编译安装详解.md

    Hadoop-3.3.0-Centos7-64bit_编译安装详解.md

    在docker上部署hadoop集群

    教程:在linux虚拟机下(centos),通过docker容器,部署hadoop集群。一个master节点和三个slave节点。

    细细品味Hadoop_Hadoop集群CentOS安装配置.rar_hadoop

    本篇文章将详细讲解Hadoop在CentOS操作系统上的安装与配置,帮助你深入理解Hadoop集群的搭建过程。 首先,我们要了解Hadoop的基本概念。Hadoop是由Apache软件基金会开发的一个开源框架,它允许分布式存储和处理大量...

    使用docker部署hadoop集群的详细教程

    最近要在公司里搭建一个hadoop测试集群,于是采用docker来快速部署hadoop集群。 0. 写在前面 网上也已经有很多教程了,但是其中都有不少坑,在此记录一下自己安装的过程。 目标:使用docker搭建一个一主两从三台机器...

    CentOS上搭建Hadoop2.5.2_CentOS搭建hadoop_云计算_源码

    在搭建Hadoop 2.5.2环境的过程中,选择CentOS作为操作系统是一个常见的选择,因为其稳定性和与开源软件的良好兼容性。以下是基于CentOS 7.0搭建Hadoop 2.5.2的详细步骤,以及涉及的相关知识点: 1. **系统准备**: ...

Global site tag (gtag.js) - Google Analytics