【原创】大叔经验分享(127)impala3.4编译安装

准备

maven

下载

https://downloads.apache.org/impala/3.4.0/apache-impala-3.4.0.tar.gz

编译

# tar xvf apache-impala-3.4.0.tar.gz
# cd apache-impala-3.4.0
# bin/bootstrap_system.sh
# ./buildall.sh -noclean -notests

报错处理

[ERROR] Failed to execute goal on project
impala-minimal-hive-exec: Could not resolve dependencies for project
org.apache.impala:impala-minimal-hive-exec:jar:0.1-SNAPSHOT: Failed to
collect dependencies at
org.apache.hive:hive-exec:jar:2.1.1-cdh6.x-SNAPSHOT ->
org.cloudera.logredactor:logredactor:jar:2.0.7: Failed to read
artifact descriptor for
org.cloudera.logredactor:logredactor:jar:2.0.7: Could not transfer
artifact org.cloudera.logredactor:logredactor:pom:2.0.7 from/to
glassfish-repo-archive.repo
(https://mvnrepository.com/artifact/org.glassfish/javax.el/):
Authorization failed for
https://mvnrepository.com/artifact/org.glassfish/javax.el/org/cloudera/logredactor/logredactor/2.0.7/logredactor-2.0.7.pom
403 Forbidden -> [Help 1]

改动如下:

# vim impala-parent/pom.xml
1 修改
<id>cdh.rcs.releases.repo</id>
- <url>https://repository.cloudera.com/content/groups/cdh-releases-rcs</url>
+ <url>https://repository.cloudera.com/artifactory/cdh-releases-rcs</url>
<name>CDH Releases Repository</name>
2 删除
- <repository>
- <id>cloudera.thirdparty.repo</id>
- <url>https://repository.cloudera.com/content/repositories/third-party</url>
- <name>Cloudera Third Party Repository</name>
- <snapshots>
- <enabled>false</enabled>
- </snapshots>
- </repository>
- <repository>
3 修改
<pluginRepository>
- <id>cloudera.thirdparty.repo</id>
- <url>https://repository.cloudera.com/content/repositories/third-party</url>
- <name>Cloudera Third Party Repository</name>
+ <id>cdh.rcs.releases.repo</id>
+ <url>https://repository.cloudera.com/artifactory/cdh-releases-rcs</url>
+ <name>CDH Releases Repository</name>
<snapshots>

编译成功之后可执行文件位于 be/build/debug/service/

参考:https://lists.apache.org/x/thread.html/rdaac8f1ba19e8b584b32fa4eb5e90fd650d3a5f162da0908fe55b4c9@<user.impala.apache.org>


---------------------------------------------------------------- 结束啦,我是大魔王先生的分割线 :) ----------------------------------------------------------------
  • 由于大魔王先生能力有限,文中可能存在错误,欢迎指正、补充!
  • 感谢您的阅读,如果文章对您有用,那么请为大魔王先生轻轻点个赞,ありがとう
原文地址:https://www.cnblogs.com/barneywill/p/14763753.html