前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >Hadoop基础教程-第13章 源码编译(13.4 Hive2.1.1源码编译)

Hadoop基础教程-第13章 源码编译(13.4 Hive2.1.1源码编译)

作者头像
程裕强
发布2018-01-02 16:41:43
1K0
发布2018-01-02 16:41:43
举报

第13章 源码编译

13.4 Hive2.1.1源码编译

13.4.1 下载源码

https://mirrors.tuna.tsinghua.edu.cn/apache/hive/

单击stable-2

下载源码apache-hive-2.1.1-src.tar.gz

13.4.2 环境准备

Hive2.1.1的源码包需要JDK1.8。如果使用JDK1.7编译是总是产生各种奇怪的问题,GC overhead limit exceeded

使用Ali镜像时出现问题

代码语言:javascript
复制
The POM for org.pentaho:pentaho-aggdesigner-algorithm:jar:5.1.5-jhyde is missing, no dependency information available

于是,不启用Ali镜像

代码语言:javascript
复制
[root@cyq apache-hive-2.1.1-src]# vi /opt/apache-maven-3.3.9/conf/settings.xml
  <mirrors>
    <!-- mirror
     | Specifies a repository mirror site to use instead of a given repository. The repository that
     | this mirror serves has an ID that matches the mirrorOf element of this mirror. IDs are used
     | for inheritance and direct lookup purposes, and must be unique across the set of mirrors.
     |
    <mirror>
      <id>mirrorId</id>
      <mirrorOf>repositoryId</mirrorOf>
      <name>Human Readable Name for this Mirror.</name>
      <url>http://my.repository.com/repo/path</url>
    </mirror>
     -->
       <!--
    <mirror>
        <id>nexus-aliyun</id>
        <mirrorOf>*</mirrorOf>
        <name>Nexus aliyun</name>
        <url>http://maven.aliyun.com/nexus/content/groups/public</url>
    </mirror>
       -->
  </mirrors>

13.4.3 开始编译

代码语言:javascript
复制
[root@cyq apache-hive-2.1.1-src]# export MAVEN_OPTS="-Xmx2g -XX:ReservedCodeCacheSize=1024m"
[root@cyq apache-hive-2.1.1-src]# mvn clean package -Phadoop-2 -Pdist -DskipTests -Dtar

[INFO] Reactor Summary:
[INFO] 
[INFO] Hive ............................................... SUCCESS [  0.877 s]
[INFO] Hive Shims Common .................................. SUCCESS [  1.735 s]
[INFO] Hive Shims 0.23 .................................... SUCCESS [  1.321 s]
[INFO] Hive Shims Scheduler ............................... SUCCESS [  0.509 s]
[INFO] Hive Shims ......................................... SUCCESS [  0.415 s]
[INFO] Hive Storage API ................................... SUCCESS [  0.536 s]
[INFO] Hive ORC ........................................... SUCCESS [  1.636 s]
[INFO] Hive Common ........................................ SUCCESS [  2.218 s]
[INFO] Hive Service RPC ................................... SUCCESS [  1.044 s]
[INFO] Hive Serde ......................................... SUCCESS [  1.632 s]
[INFO] Hive Metastore ..................................... SUCCESS [  7.775 s]
[INFO] Hive Ant Utilities ................................. SUCCESS [  0.131 s]
[INFO] Hive Llap Common ................................... SUCCESS [  1.101 s]
[INFO] Hive Llap Client ................................... SUCCESS [  0.708 s]
[INFO] Hive Llap Tez ...................................... SUCCESS [  0.886 s]
[INFO] Spark Remote Client ................................ SUCCESS [  1.677 s]
[INFO] Hive Query Language ................................ SUCCESS [ 36.962 s]
[INFO] Hive Llap Server ................................... SUCCESS [ 38.075 s]
[INFO] Hive Service ....................................... SUCCESS [01:26 min]
[INFO] Hive Accumulo Handler .............................. SUCCESS [ 31.816 s]
[INFO] Hive JDBC .......................................... SUCCESS [01:37 min]
[INFO] Hive Beeline ....................................... SUCCESS [ 15.614 s]
[INFO] Hive CLI ........................................... SUCCESS [  0.772 s]
[INFO] Hive Contrib ....................................... SUCCESS [  0.536 s]
[INFO] Hive HBase Handler ................................. SUCCESS [ 20.985 s]
[INFO] Hive HCatalog ...................................... SUCCESS [ 48.139 s]
[INFO] Hive HCatalog Core ................................. SUCCESS [  5.561 s]
[INFO] Hive HCatalog Pig Adapter .......................... SUCCESS [  4.961 s]
[INFO] Hive HCatalog Server Extensions .................... SUCCESS [ 25.777 s]
[INFO] Hive HCatalog Webhcat Java Client .................. SUCCESS [  0.893 s]
[INFO] Hive HCatalog Webhcat .............................. SUCCESS [ 29.462 s]
[INFO] Hive HCatalog Streaming ............................ SUCCESS [  0.941 s]
[INFO] Hive HPL/SQL ....................................... SUCCESS [ 24.698 s]
[INFO] Hive HWI ........................................... SUCCESS [  0.588 s]
[INFO] Hive Llap External Client .......................... SUCCESS [  0.576 s]
[INFO] Hive Shims Aggregator .............................. SUCCESS [  0.022 s]
[INFO] Hive TestUtils ..................................... SUCCESS [  0.041 s]
[INFO] Hive Packaging ..................................... SUCCESS [ 42.897 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 08:57 min
[INFO] Finished at: 2017-07-28T14:56:43+08:00
[INFO] Final Memory: 271M/1300M
[INFO] ------------------------------------------------------------------------
[WARNING] The requested profile "hadoop-2" could not be activated because it does not exist.
您在 /var/spool/mail/root 中有新邮件
[root@cyq apache-hive-2.1.1-src]# 
本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2017-08-28 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 第13章 源码编译
  • 13.4 Hive2.1.1源码编译
    • 13.4.1 下载源码
      • 13.4.2 环境准备
        • 13.4.3 开始编译
        相关产品与服务
        领券
        问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档