Download kafka from archive.apache.org

It seems that versions are deleted from www.apache.org pretty quickly.
They stick around longer on archive.apache.org so we won't have to
be constantly chasing the latest version in our functional tests.

Change-Id: I047edac67699dd598f8dfd0f859b3772f6068bd3
This commit is contained in:
Ben Nemec 2019-06-10 15:35:43 +00:00
parent e45dfa7ea2
commit 70b03bcf83
2 changed files with 2 additions and 2 deletions

View File

@ -220,7 +220,7 @@ the configuration
::
KAFKA_VERSION=2.0.0
KAFKA_BASEURL=http://www.apache.org/dist/kafka
KAFKA_BASEURL=http://archive.apache.org/dist/kafka
SCALA_VERSION=2.12
SCALA_BASEURL=http://www.scala-lang.org/riles/archive

View File

@ -12,7 +12,7 @@ if [[ -z "$(which kafka-server-start)" ]] && [[ -z $(which kafka-server-start.sh
tarball=kafka_${SCALA_VERSION}-${KAFKA_VERSION}.tgz
wget http://www.apache.org/dist/kafka/${KAFKA_VERSION}/$tarball -O $DATADIR/$tarball
wget http://archive.apache.org/dist/kafka/${KAFKA_VERSION}/$tarball -O $DATADIR/$tarball
tar -xzf $DATADIR/$tarball -C $DATADIR
export PATH=$DATADIR/kafka_${SCALA_VERSION}-${KAFKA_VERSION}/bin:$PATH
fi