编译hive 源码的命令:

mvn clean install -T 4C -DskinpTests
出现如下报错:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project metastore-tools-common: Execution default-compile of goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile failed: 
Plugin org.apache.maven.plugins:maven-compiler-plugin:3.8.1 or one of its dependencies could not be resolved:
Could not transfer artifact com.google.errorprone:javac:jar:9+181-r4173-1 from/to alimaven (http://maven.aliyun.com/nexus/content/repositories/central/): Authorization failed for http://maven.aliyun.com/nexus/content/repositories/central/com/google/errorprone/javac/9+181-r4173-1/javac-9+181-r4173-1.jar 403 Forbidden -> [Help 1]

###############################################################################################
整个意思是javac-9+181-r4173-1.jar因为阿里云的maven仓库的403权限问题无法下载
下面开始排查com.google.errorprone是哪个pom.xml写入的依赖需求

在maven上找到了这么个链接:
https://mvnrepository.com/artifact/com.google.errorprone/javac/9+181-r4173-1
对应的pom是:
<dependency>
    <groupId>com.google.errorprone</groupId>
    <artifactId>javac</artifactId>
    <version>9+181-r4173-1</version>
</dependency>

那么也就是说hive的源码文件夹中存在上述pom遇到了403报错导致编译失败了.

查找作妖的具体是哪个pom,查找过程如下 :
(Python3.6) appleyuchi@Desktop:~/桌面/hive$ **grep -r com.google.errorprone\<**
①standalone-metastore/metastore-tools/metastore-benchmarks/pom.xml:            <groupId>com.google.errorprone</groupId>
②standalone-metastore/metastore-tools/tools-common/pom.xml:            <groupId>com.google.errorprone</groupId>

也就是说,$HIVE_HOME/pom.xml中的standalone-metastore这个module出了编译故障.

###############################################################################################

先去这个pom.xml里面注释掉其他的只留下下面两个,

    <module>upgrade-acid</module>
    <module>kafka-handler</module>

因为这两个由于standalone-metastore的故障导致没有进行编译,我们来编译检查下是否会出现问题.

运行之后看了下没啥问题.

也就是说这个hive的编译只剩下standalone-metastore这个模块了.

####################################################################################################

$HIVE_HOME/pom.xml只留下standalone-metastore

然后①②两个pom.xml的com.google.errorprone的

</dependency>前面加入:

<scope>system</scope>
<systemPath>/home/appleyuchi/桌面/javac-9+181-r4173-1.jar</systemPath>

像下面这样

<dependency>
            <groupId>com.google.errorprone</groupId>
            <artifactId>error_prone_core</artifactId>
            <version>${errorprone.core.version}</version>
            <scope>system</scope>
                <systemPath>/home/appleyuchi/桌面/javac-9+181-r4173-1.jar</systemPath>
          </dependency>

###############################################################################################

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project metastore-tools-common: Fatal error compiling: CompilerException: InvocationTargetException: com/google/errorprone/ErrorProneCompiler$Builder: com.google.errorprone.ErrorProneCompiler$Builder -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

搞不定,醉了.....

hive源碼編譯(失敗記錄)相关推荐

  1. (原創) 如何在Visual Studio 2005編譯boost 1.33.1? (C/C++) (VC++) (boost)

    1.下載boost source到http://www.boost.org/下載最新版本的boost,我目前下載的是1.33.1,將之解壓縮到c:\boost_1_33_1\下 2.編譯bjam利用V ...

  2. linux 内核裁剪不当 死机,Linux編譯x86架構內核出現_stack_chk_guard未定義錯誤

    背景 android模擬器運行於virtualbox中,而virtualbox運行於x86架構的pc端,所以android及其Linux內核都編譯成x86架構.當virtualbox的vt未開啟的情況 ...

  3. cppan 命令_逐步解說:在命令列上編譯原生 C++ 程式

    逐步解說:在命令列上編譯原生 C++ 程式Walkthrough: Compiling a Native C++ Program on the Command Line 04/02/2020 本文內容 ...

  4. TensorRT/samples/common/argsParser.h源碼研讀

    TensorRT/samples/common/argsParser.h源碼研讀 argsParser.h namespace struct的繼承 caffe特有參數 UFF格式 不需要typedef ...

  5. React 源碼解析 - Fiber/Reconcile 系列:Fiber 與 Diff

    React 源碼解析 - Fiber/Reconcile 系列:Fiber 與 Diff 前言 正文 從 DOM 到 Fiber 對象 DOM VDOM React 元素(React Element) ...

  6. 為 Swift 代碼編寫含有 Mardown 語法的文檔

    `> 原文:Documenting Your Swift Code in Xcode Using Markdown 作者:GABRIEL THEODOROPOULOS 译者:kmyhy 在 Xc ...

  7. notepad++ c语言编译,Notepad++編譯和運行C語言 (GCC)

    我們在學習C語言的時候,實際上只需要編譯器和編輯器就能開搞了.(初學者過早接觸IDE不利於理解程序構建的過程) 在看這篇文章的時候,假設你已經知道如何把GCC配置到環境變量,並且會在命令行/終端下使用 ...

  8. 3288 android5.1 编译,RK3288編譯 Android 5.1 固件

    1 准備工作 編譯 Android 對機器的配置要求較高: 64 位 CPU 16GB 物理內存+交換內存 30GB 空閑的磁盤空間用於構建,源碼樹另外占用大約 25GB 官方推薦 Ubuntu 14 ...

  9. linux 编译器制作,Linux交叉編譯器的制作(一)

    Linux交叉編譯器的制作-buildroot 1.問題出現 編譯內核時,需要在PC機上進行編譯才能下載到開發板上去,但兩個平台不一樣,需要我們自己實現這個功能. [klaus@localhost l ...

最新文章

  1. 最新数据分析教程资源合集(案例、数据集、SQL教程、分析样板、面经、简历、PY教程... )...
  2. 专家揭示模块化数据中心的真谛
  3. python3 scrapy 教程_Scrapy 教程
  4. W3School-CSS 表格实例
  5. oracle分区交换有啥好处,分区交换的速度为什么快?
  6. python离散余弦变换_在python3下使用OpenCV做离散余弦变换DCT及其反变换IDCT
  7. EasyExcel导入的时候报错Caused by: java.lang.NoClassDefFoundError: org/apache/poi/poifs/filesystem/File
  8. 在win10系统中安装Visual C++ 6.0的具体方法
  9. spring(4)面向切面的Spring(AOP)
  10. 前端绘制绘制图表_绘制图表(第2页):JavaScript图表库的比较
  11. arm linux远程桌面win7卡顿,主编解答win7系统使用远程桌面出现卡顿的恢复方法
  12. java random api_API中的Scanner、Random、ArrayList、String类
  13. 使用C#调用外部序或是执行DOS命令
  14. linux 删除压缩包_【干货】记住!这些 Linux 命令千万不要运行!
  15. Vue绘制业务流程图(附源码)
  16. U盘无法格式化(提示U盘文件系统变为了RAW格式)【一般应用】
  17. android内存显示修改,涨姿势:修改这个系统选项Android手机再也不用清内存!速度飞起...
  18. 如何对文本框进行功能测试
  19. 【YBT2022寒假Day8 A】染色计划(Tarjan)(线段树优化建边)(树链剖分)
  20. `Algorithm-Solution` `LeetCode` 6305. 二进制矩阵中翻转最多一次使路径不连通

热门文章

  1. RAID信息存放位置!
  2. jmeter ForEach控制器学习
  3. 【转】Android开发之数据库SQL
  4. 类模板 重载运算符 易错
  5. The 4+1 view model
  6. 详解使用VueJS开发项目中的兼容问题
  7. css怎么把横向菜单变纵向_CSS 布局模式 + 居中布局
  8. windows下连接db2数据库
  9. Matlab移植到Eigen用到的词条
  10. tp连接mysql mysql_thinkphp学习简易教程(二) thinkphp连接读取MySQL数据库