This is an automated email from the ASF dual-hosted git repository.

abstractdog pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hive.git


The following commit(s) were added to refs/heads/master by this push:
     new 7ef64d3e466 HIVE-29500: Docker build fails for older hive versions 
(#6354)
7ef64d3e466 is described below

commit 7ef64d3e4662ce92f7008ef4c4a6dc6139eb7143
Author: Bodor Laszlo <[email protected]>
AuthorDate: Wed Mar 11 13:12:51 2026 +0100

    HIVE-29500: Docker build fails for older hive versions (#6354)
---
 packaging/src/docker/Dockerfile | 6 +++---
 packaging/src/docker/build.sh   | 4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/packaging/src/docker/Dockerfile b/packaging/src/docker/Dockerfile
index 72e6e81ea0c..93426533a36 100644
--- a/packaging/src/docker/Dockerfile
+++ b/packaging/src/docker/Dockerfile
@@ -26,9 +26,9 @@ ARG HADOOP_VERSION
 ARG HIVE_VERSION
 ARG TEZ_VERSION
 ONBUILD RUN apt-get update && apt-get -y install wget
-ONBUILD RUN wget --no-verbose 
https://downloads.apache.org/tez/$TEZ_VERSION/apache-tez-$TEZ_VERSION-bin.tar.gz
 && \
+ONBUILD RUN wget --no-verbose 
https://archive.apache.org/dist/tez/$TEZ_VERSION/apache-tez-$TEZ_VERSION-bin.tar.gz
 && \
  wget --no-verbose 
https://archive.apache.org/dist/hadoop/core/hadoop-$HADOOP_VERSION/hadoop-$HADOOP_VERSION.tar.gz
 && \
- wget --no-verbose 
https://downloads.apache.org/hive/hive-$HIVE_VERSION/apache-hive-$HIVE_VERSION-bin.tar.gz
+ wget --no-verbose 
https://archive.apache.org/dist/hive/hive-$HIVE_VERSION/apache-hive-$HIVE_VERSION-bin.tar.gz
 ONBUILD RUN mv /apache-tez-$TEZ_VERSION-bin.tar.gz /opt && \
  mv hadoop-$HADOOP_VERSION.tar.gz /opt && \
  mv apache-hive-$HIVE_VERSION-bin.tar.gz /opt
@@ -38,7 +38,7 @@ ARG HADOOP_VERSION
 ARG HIVE_VERSION
 ARG TEZ_VERSION
 ONBUILD RUN apt-get update && apt-get -y install wget
-ONBUILD RUN wget --no-verbose 
https://downloads.apache.org/tez/$TEZ_VERSION/apache-tez-$TEZ_VERSION-bin.tar.gz
 && \
+ONBUILD RUN wget --no-verbose 
https://archive.apache.org/dist/tez/$TEZ_VERSION/apache-tez-$TEZ_VERSION-bin.tar.gz
 && \
  wget --no-verbose 
https://archive.apache.org/dist/hadoop/core/hadoop-$HADOOP_VERSION/hadoop-$HADOOP_VERSION.tar.gz
 ONBUILD COPY ./apache-hive-$HIVE_VERSION-bin.tar.gz /opt
 ONBUILD RUN mv /apache-tez-$TEZ_VERSION-bin.tar.gz /opt && \
diff --git a/packaging/src/docker/build.sh b/packaging/src/docker/build.sh
index 5687c5830ee..1899e73fc93 100755
--- a/packaging/src/docker/build.sh
+++ b/packaging/src/docker/build.sh
@@ -85,7 +85,7 @@ if [ ! -f "$CACHE_DIR/$HADOOP_FILE_NAME" ]; then
 fi
 
 TEZ_FILE_NAME="apache-tez-$TEZ_VERSION-bin.tar.gz"
-TEZ_URL=${TEZ_URL:-"https://downloads.apache.org/tez/$TEZ_VERSION/$TEZ_FILE_NAME"}
+TEZ_URL=${TEZ_URL:-"https://archive.apache.org/dist/tez/$TEZ_VERSION/$TEZ_FILE_NAME"}
 if [ ! -f "$CACHE_DIR/$TEZ_FILE_NAME" ]; then
   echo "Downloading Tez from $TEZ_URL..."
   if ! curl --fail -L "$TEZ_URL" -o "$CACHE_DIR/$TEZ_FILE_NAME.tmp"; then
@@ -98,7 +98,7 @@ fi
 if [ -n "$HIVE_VERSION" ]; then
   HIVE_FILE_NAME="apache-hive-$HIVE_VERSION-bin.tar.gz"
   if [ ! -f "$CACHE_DIR/$HIVE_FILE_NAME" ]; then
-    
HIVE_URL=${HIVE_URL:-"https://downloads.apache.org/hive/hive-$HIVE_VERSION/$HIVE_FILE_NAME"}
+    
HIVE_URL=${HIVE_URL:-"https://archive.apache.org/dist/hive/hive-$HIVE_VERSION/$HIVE_FILE_NAME"}
     echo "Downloading Hive from $HIVE_URL..."
     if ! curl --fail -L "$HIVE_URL" -o "$CACHE_DIR/$HIVE_FILE_NAME.tmp"; then
       echo "Failed to download Hive, exiting..."

Reply via email to