You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@impala.apache.org by jo...@apache.org on 2025/06/05 23:20:12 UTC
(impala) branch master updated: IMPALA-14125: Avoid downloading maven from archive.apache.org
This is an automated email from the ASF dual-hosted git repository.
joemcdonnell pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/impala.git
The following commit(s) were added to refs/heads/master by this push:
new b21e0f031 IMPALA-14125: Avoid downloading maven from archive.apache.org
b21e0f031 is described below
commit b21e0f031b6bf34638aa85c1a18249eb508aaea2
Author: Joe McDonnell <jo...@cloudera.com>
AuthorDate: Mon Jun 2 12:17:47 2025 -0700
IMPALA-14125: Avoid downloading maven from archive.apache.org
Some builds failed because archive.apache.org was unreachable.
This gets the maven download from the native toolchain s3 bucket
instead.
Change-Id: Ib1eec38f12209abf88c1cf2976db47d0ca04ab5b
Reviewed-on: http://gerrit.cloudera.org:8080/22973
Reviewed-by: Impala Public Jenkins <im...@cloudera.com>
Tested-by: Impala Public Jenkins <im...@cloudera.com>
---
bin/bootstrap_build.sh | 3 ++-
bin/bootstrap_system.sh | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/bin/bootstrap_build.sh b/bin/bootstrap_build.sh
index 475e71259..94d547eab 100755
--- a/bin/bootstrap_build.sh
+++ b/bin/bootstrap_build.sh
@@ -64,10 +64,11 @@ sudo apt-get --yes install openjdk-${JDK_VERSION}-jdk openjdk-${JDK_VERSION}-sou
export JAVA_HOME=/usr/lib/jvm/java-${JDK_VERSION}-openjdk-amd64
# Download Maven since the packaged version is pretty old.
+: ${IMPALA_TOOLCHAIN_HOST:=native-toolchain.s3.amazonaws.com}
MVN_VERSION="3.9.8"
if [ ! -d "/usr/local/apache-maven-${MVN_VERSION}" ]; then
sudo wget -nv \
- "https://archive.apache.org/dist/maven/maven-3/${MVN_VERSION}/binaries/apache-maven-${MVN_VERSION}-bin.tar.gz"
+ "https://${IMPALA_TOOLCHAIN_HOST}/maven/apache-maven-${MVN_VERSION}-bin.tar.gz"
sha512sum -c - <<< "7d171def9b85846bf757a2cec94b7529371068a0670df14682447224e57983528e97a6d1b850327e4ca02b139abaab7fcb93c4315119e6f0ffb3f0cbc0d0b9a2 apache-maven-${MVN_VERSION}-bin.tar.gz"
sudo tar -C /usr/local -xzf apache-maven-${MVN_VERSION}-bin.tar.gz
sudo ln -s /usr/local/apache-maven-${MVN_VERSION}/bin/mvn /usr/local/bin
diff --git a/bin/bootstrap_system.sh b/bin/bootstrap_system.sh
index 1bf77a9d2..492795ff5 100755
--- a/bin/bootstrap_system.sh
+++ b/bin/bootstrap_system.sh
@@ -368,10 +368,11 @@ redhat sudo yum install -y ccache
redhat sudo yum clean all
# Download Maven since the packaged version is pretty old.
+: ${IMPALA_TOOLCHAIN_HOST:=native-toolchain.s3.amazonaws.com}
MVN_VERSION="3.9.8"
if [ ! -d "/usr/local/apache-maven-${MVN_VERSION}" ]; then
sudo wget -nv \
- "https://archive.apache.org/dist/maven/maven-3/${MVN_VERSION}/binaries/apache-maven-${MVN_VERSION}-bin.tar.gz"
+ "https://${IMPALA_TOOLCHAIN_HOST}/maven/apache-maven-${MVN_VERSION}-bin.tar.gz"
sha512sum -c - <<< "7d171def9b85846bf757a2cec94b7529371068a0670df14682447224e57983528e97a6d1b850327e4ca02b139abaab7fcb93c4315119e6f0ffb3f0cbc0d0b9a2 apache-maven-${MVN_VERSION}-bin.tar.gz"
sudo tar -C /usr/local -xzf "apache-maven-${MVN_VERSION}-bin.tar.gz"
# Ensure that Impala's preferred version is installed locally,