diff --git a/examples/quickstart/tutorial/hadoop/docker/Dockerfile b/examples/quickstart/tutorial/hadoop/docker/Dockerfile index d6ae8aedcb15..dd5277814692 100644 --- a/examples/quickstart/tutorial/hadoop/docker/Dockerfile +++ b/examples/quickstart/tutorial/hadoop/docker/Dockerfile @@ -60,8 +60,8 @@ ENV JAVA_HOME=/usr/lib/jvm/zulu17 ENV PATH $PATH:$JAVA_HOME/bin # hadoop -ARG APACHE_ARCHIVE_MIRROR_HOST=https://archive.apache.org -RUN curl -s ${APACHE_ARCHIVE_MIRROR_HOST}/dist/hadoop/core/hadoop-3.3.6/hadoop-3.3.6.tar.gz | tar -xz -C /usr/local/ +ARG APACHE_ARCHIVE_MIRROR_HOST=https://downloads.apache.org +RUN curl -s ${APACHE_ARCHIVE_MIRROR_HOST}/hadoop/core/hadoop-3.3.6/hadoop-3.3.6.tar.gz | tar -xz -C /usr/local/ RUN cd /usr/local && ln -s ./hadoop-3.3.6 hadoop ENV HADOOP_HOME /usr/local/hadoop diff --git a/integration-tests/README.md b/integration-tests/README.md index 70c5e6c5edba..a00b6e31bc0a 100644 --- a/integration-tests/README.md +++ b/integration-tests/README.md @@ -46,7 +46,7 @@ environment variable to localhost on your system, as follows: export DOCKER_IP=127.0.0.1 ``` -Optionally, you can also set `APACHE_ARCHIVE_MIRROR_HOST` to override `https://archive.apache.org` host. This host is used to download archives such as hadoop and kafka during building docker images: +Optionally, you can also set `APACHE_ARCHIVE_MIRROR_HOST` to override `https://downloads.apache.org` host. This host is used to download archives such as hadoop and kafka during building docker images: ```bash export APACHE_ARCHIVE_MIRROR_HOST=https://example.com/remote-generic-repo diff --git a/integration-tests/docker/Dockerfile b/integration-tests/docker/Dockerfile index 89fd45c97784..1436aa5bf856 100644 --- a/integration-tests/docker/Dockerfile +++ b/integration-tests/docker/Dockerfile @@ -24,7 +24,7 @@ ARG KAFKA_VERSION # ZooKeeper version to install in the base image # This is passed in by maven at build time to align with the client version we depend on in the pom file ARG ZK_VERSION -ARG APACHE_ARCHIVE_MIRROR_HOST=https://archive.apache.org +ARG APACHE_ARCHIVE_MIRROR_HOST=https://downloads.apache.org ARG SETUP_RETRIES=3 # Retry mechanism for running the setup script up to limit of 3 times. RUN set -e; \ diff --git a/integration-tests/docker/base-setup.sh b/integration-tests/docker/base-setup.sh index 2a258664fb7b..ea10e1a336b5 100755 --- a/integration-tests/docker/base-setup.sh +++ b/integration-tests/docker/base-setup.sh @@ -18,7 +18,7 @@ set -e set -u export DEBIAN_FRONTEND=noninteractive -APACHE_ARCHIVE_MIRROR_HOST=${APACHE_ARCHIVE_MIRROR_HOST:-https://archive.apache.org} +APACHE_ARCHIVE_MIRROR_HOST=${APACHE_ARCHIVE_MIRROR_HOST:-https://downloads.apache.org} apt-get update @@ -34,7 +34,7 @@ apt-get install -y supervisor # Zookeeper install_zk() { - wget -q -O /tmp/$ZK_TAR.tar.gz "$APACHE_ARCHIVE_MIRROR_HOST/dist/zookeeper/zookeeper-$ZK_VERSION/$ZK_TAR.tar.gz" + wget -q -O /tmp/$ZK_TAR.tar.gz "$APACHE_ARCHIVE_MIRROR_HOST/zookeeper/zookeeper-$ZK_VERSION/$ZK_TAR.tar.gz" tar -xzf /tmp/$ZK_TAR.tar.gz -C /usr/local cp /usr/local/$ZK_TAR/conf/zoo_sample.cfg /usr/local/$ZK_TAR/conf/zoo.cfg rm /tmp/$ZK_TAR.tar.gz @@ -46,7 +46,7 @@ ln -s /usr/local/$ZK_TAR /usr/local/zookeeper # Kafka # KAFKA_VERSION is defined by docker build arguments -wget -q -O /tmp/kafka_2.13-$KAFKA_VERSION.tgz "$APACHE_ARCHIVE_MIRROR_HOST/dist/kafka/$KAFKA_VERSION/kafka_2.13-$KAFKA_VERSION.tgz" +wget -q -O /tmp/kafka_2.13-$KAFKA_VERSION.tgz "$APACHE_ARCHIVE_MIRROR_HOST/kafka/$KAFKA_VERSION/kafka_2.13-$KAFKA_VERSION.tgz" tar -xzf /tmp/kafka_2.13-$KAFKA_VERSION.tgz -C /usr/local ln -s /usr/local/kafka_2.13-$KAFKA_VERSION /usr/local/kafka rm /tmp/kafka_2.13-$KAFKA_VERSION.tgz