浏览代码

HADOOP-13012. yetus-wrapper should fail sooner when download fails (Steven Wong via aw)

Allen Wittenauer 9 年之前
父节点
当前提交
c7484eb541
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      dev-support/bin/yetus-wrapper

+ 1 - 1
dev-support/bin/yetus-wrapper

@@ -115,7 +115,7 @@ if [[ $? != 0 ]]; then
 fi
 
 if [[ -n "${CURLBIN}" ]]; then
-  "${CURLBIN}" -s -L -O "${BASEURL}/${TARBALL}.gz"
+  "${CURLBIN}" -f -s -L -O "${BASEURL}/${TARBALL}.gz"
   if [[ $? != 0 ]]; then
     yetus_error "ERROR: yetus-dl: unable to download ${BASEURL}/${TARBALL}.gz"
     exit 1