File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -8,15 +8,15 @@ ZOOKEEPER_VERSION=${ZOOKEEPER_VERSION:-3.4.14}
88ZOOKEEPER_PATH=" $ZOO_BASE_DIR /$ZOOKEEPER_VERSION "
99ZOOKEEPER_PREFIX=${ZOOKEEPER_PREFIX}
1010ZOOKEEPER_SUFFIX=${ZOOKEEPER_SUFFIX}
11- ZOO_MIRROR_URL=" http ://archive.apache.org/dist"
11+ ZOO_MIRROR_URL=" https ://archive.apache.org/dist"
1212
1313
1414function download_zookeeper(){
1515 mkdir -p $ZOO_BASE_DIR
1616 cd $ZOO_BASE_DIR
1717 ZOOKEEPER_DOWNLOAD_URL=${ZOO_MIRROR_URL} /zookeeper/zookeeper-${ZOOKEEPER_VERSION} /${ZOOKEEPER_PREFIX} zookeeper-${ZOOKEEPER_VERSION}${ZOOKEEPER_SUFFIX} .tar.gz
1818 echo " Will download ZK from ${ZOOKEEPER_DOWNLOAD_URL} "
19- (curl --silent -C - $ZOOKEEPER_DOWNLOAD_URL | tar -zx) || echo " Failed downloading ZK from ${ZOOKEEPER_DOWNLOAD_URL} "
19+ (curl --silent -L - C - $ZOOKEEPER_DOWNLOAD_URL | tar -zx) || ( echo " Failed downloading ZK from ${ZOOKEEPER_DOWNLOAD_URL} " && exit 1)
2020 mv ${ZOOKEEPER_PREFIX} zookeeper-${ZOOKEEPER_VERSION}${ZOOKEEPER_SUFFIX} $ZOOKEEPER_VERSION
2121 chmod a+x $ZOOKEEPER_PATH /bin/zkServer.sh
2222}
You can’t perform that action at this time.
0 commit comments