Skip to content

Commit

Permalink
feat(testing): be a little more verbose about ZK download URL
Browse files Browse the repository at this point in the history
So that we understand better when it fails
  • Loading branch information
StephenSorriaux committed Feb 25, 2024
1 parent b00d88f commit d777263
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ensure-zookeeper-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ ZOO_MIRROR_URL="http://archive.apache.org/dist"
function download_zookeeper(){
mkdir -p $ZOO_BASE_DIR
cd $ZOO_BASE_DIR
curl --silent -C - $ZOO_MIRROR_URL/zookeeper/zookeeper-$ZOOKEEPER_VERSION/${ZOOKEEPER_PREFIX}zookeeper-${ZOOKEEPER_VERSION}${ZOOKEEPER_SUFFIX}.tar.gz | tar -zx
ZOOKEEPER_DOWNLOAD_URL=${ZOO_MIRROR_URL}/zookeeper/zookeeper-${ZOOKEEPER_VERSION}/${ZOOKEEPER_PREFIX}zookeeper-${ZOOKEEPER_VERSION}${ZOOKEEPER_SUFFIX}.tar.gz
echo "Will download ZK from ${ZOOKEEPER_DOWNLOAD_URL}"
(curl --silent -C - $ZOOKEEPER_DOWNLOAD_URL | tar -zx) || echo "Failed downloading ZK from ${ZOOKEEPER_DOWNLOAD_URL}"
mv ${ZOOKEEPER_PREFIX}zookeeper-${ZOOKEEPER_VERSION}${ZOOKEEPER_SUFFIX} $ZOOKEEPER_VERSION
chmod a+x $ZOOKEEPER_PATH/bin/zkServer.sh
}
Expand Down

0 comments on commit d777263

Please sign in to comment.