Skip to content

Commit

Permalink
ducktape: fix flink URL
Browse files Browse the repository at this point in the history
Current URL throws a 404 and 1.18.0 is not hosted anywhere.
Also switching the download URL as per
apache/flink-docker#170

ci: Update flink link to archive.apache.org
  • Loading branch information
bharathv authored and savex committed Jan 23, 2024
1 parent 5d658ab commit c31a8e1
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions tests/docker/ducktape-deps/flink
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,15 @@ set -e
mkdir /opt/flink

# Download
FLINK_FILE=flink-1.18.1-bin-scala_2.12.tgz
FLINK_VERSION=1.18.1
FLINK_SCALA_VERSION=2.12
FLINK_FILE=flink-${FLINK_VERSION}-bin-scala_${FLINK_SCALA_VERSION}.tgz
# Instead of using main download link, use archive.apache.org
# This will prevent us from getting an HTTP:404 when new version will be introduced
# old: FLINK_URL=https://downloads.apache.org/flink/flink-${FLINK_VERSION}/${FLINK_FILE}
FLINK_URL=https://archive.apache.org/dist/flink/flink-${FLINK_VERSION}/${FLINK_FILE}
KAFKA_CONNECTOR=flink-sql-connector-kafka-3.0.1-1.18.jar
wget https://dlcdn.apache.org/flink/flink-1.18.1/${FLINK_FILE}
wget ${FLINK_URL}

# Extract
tar -xvf ${FLINK_FILE} -C /opt/flink --strip-components 1
Expand Down Expand Up @@ -37,4 +43,4 @@ pip uninstall -y virtualenv
cd flink_venv
tar -zcvf ../flink_venv.tgz ./*
cd ..
rm -rf flink_venv
rm -rf flink_venv

0 comments on commit c31a8e1

Please sign in to comment.