From 49283f4c7548c9db7fa1423c9c157ef12ec2e220 Mon Sep 17 00:00:00 2001 From: Brendan Abolivier Date: Tue, 21 May 2019 18:02:53 +0100 Subject: [PATCH] TIL archive.apache.org is a thing --- scripts/install-local-kafka.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/scripts/install-local-kafka.sh b/scripts/install-local-kafka.sh index 4669a0fc1..582792c30 100755 --- a/scripts/install-local-kafka.sh +++ b/scripts/install-local-kafka.sh @@ -8,13 +8,10 @@ cd `dirname $0`/.. mkdir -p .downloads -# The mirror to download kafka from is picked from the list of mirrors at -# https://www.apache.org/dyn/closer.cgi?path=/kafka/2.1.0/kafka_2.11-2.1.0.tgz -# TODO: Check the signature since we are downloading over HTTP. -MIRROR=http://apache.mirror.anlx.net/kafka/2.1.0/kafka_2.11-2.1.0.tgz +KAFKA_URL=http://archive.apache.org/dist/kafka/2.1.0/kafka_2.11-2.1.0.tgz # Only download the kafka if it isn't already downloaded. -test -f .downloads/kafka.tgz || wget $MIRROR -O .downloads/kafka.tgz +test -f .downloads/kafka.tgz || wget KAFKA_URL -O .downloads/kafka.tgz # Unpack the kafka over the top of any existing installation mkdir -p kafka && tar xzf .downloads/kafka.tgz -C kafka --strip-components 1 # Start the zookeeper running in the background.