File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,9 +26,9 @@ ARG HADOOP_VERSION
2626ARG HIVE_VERSION
2727ARG TEZ_VERSION
2828ONBUILD RUN apt-get update && apt-get -y install wget
29- ONBUILD RUN wget --no-verbose https://downloads .apache.org/tez/$TEZ_VERSION/apache-tez-$TEZ_VERSION-bin.tar.gz && \
29+ ONBUILD RUN wget --no-verbose https://archive .apache.org/dist /tez/$TEZ_VERSION/apache-tez-$TEZ_VERSION-bin.tar.gz && \
3030 wget --no-verbose https://archive.apache.org/dist/hadoop/core/hadoop-$HADOOP_VERSION/hadoop-$HADOOP_VERSION.tar.gz && \
31- wget --no-verbose https://downloads .apache.org/hive/hive-$HIVE_VERSION/apache-hive-$HIVE_VERSION-bin.tar.gz
31+ wget --no-verbose https://archive .apache.org/dist /hive/hive-$HIVE_VERSION/apache-hive-$HIVE_VERSION-bin.tar.gz
3232ONBUILD RUN mv /apache-tez-$TEZ_VERSION-bin.tar.gz /opt && \
3333 mv hadoop-$HADOOP_VERSION.tar.gz /opt && \
3434 mv apache-hive-$HIVE_VERSION-bin.tar.gz /opt
@@ -38,7 +38,7 @@ ARG HADOOP_VERSION
3838ARG HIVE_VERSION
3939ARG TEZ_VERSION
4040ONBUILD RUN apt-get update && apt-get -y install wget
41- ONBUILD RUN wget --no-verbose https://downloads .apache.org/tez/$TEZ_VERSION/apache-tez-$TEZ_VERSION-bin.tar.gz && \
41+ ONBUILD RUN wget --no-verbose https://archive .apache.org/dist /tez/$TEZ_VERSION/apache-tez-$TEZ_VERSION-bin.tar.gz && \
4242 wget --no-verbose https://archive.apache.org/dist/hadoop/core/hadoop-$HADOOP_VERSION/hadoop-$HADOOP_VERSION.tar.gz
4343ONBUILD COPY ./apache-hive-$HIVE_VERSION-bin.tar.gz /opt
4444ONBUILD RUN mv /apache-tez-$TEZ_VERSION-bin.tar.gz /opt && \
Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ if [ ! -f "$CACHE_DIR/$HADOOP_FILE_NAME" ]; then
8585fi
8686
8787TEZ_FILE_NAME=" apache-tez-$TEZ_VERSION -bin.tar.gz"
88- TEZ_URL=${TEZ_URL:- " https://downloads .apache.org/tez/$TEZ_VERSION /$TEZ_FILE_NAME " }
88+ TEZ_URL=${TEZ_URL:- " https://archive .apache.org/dist /tez/$TEZ_VERSION /$TEZ_FILE_NAME " }
8989if [ ! -f " $CACHE_DIR /$TEZ_FILE_NAME " ]; then
9090 echo " Downloading Tez from $TEZ_URL ..."
9191 if ! curl --fail -L " $TEZ_URL " -o " $CACHE_DIR /$TEZ_FILE_NAME .tmp" ; then
9898if [ -n " $HIVE_VERSION " ]; then
9999 HIVE_FILE_NAME=" apache-hive-$HIVE_VERSION -bin.tar.gz"
100100 if [ ! -f " $CACHE_DIR /$HIVE_FILE_NAME " ]; then
101- HIVE_URL=${HIVE_URL:- " https://downloads .apache.org/hive/hive-$HIVE_VERSION /$HIVE_FILE_NAME " }
101+ HIVE_URL=${HIVE_URL:- " https://archive .apache.org/dist /hive/hive-$HIVE_VERSION /$HIVE_FILE_NAME " }
102102 echo " Downloading Hive from $HIVE_URL ..."
103103 if ! curl --fail -L " $HIVE_URL " -o " $CACHE_DIR /$HIVE_FILE_NAME .tmp" ; then
104104 echo " Failed to download Hive, exiting..."
You can’t perform that action at this time.
0 commit comments