You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by sp...@apache.org on 2016/08/26 17:02:45 UTC
hive git commit: HIVE-14554: Download the spark-assembly file on
itests only if the MD5 checksum file is different (Sergio Pena,
reviewed by Rui Li, Sergey Shelukhin)
Repository: hive
Updated Branches:
refs/heads/master 4f220bbf8 -> 2493f86f5
HIVE-14554: Download the spark-assembly file on itests only if the MD5 checksum file is different (Sergio Pena, reviewed by Rui Li, Sergey Shelukhin)
Project: http://git-wip-us.apache.org/repos/asf/hive/repo
Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/2493f86f
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/2493f86f
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/2493f86f
Branch: refs/heads/master
Commit: 2493f86f5bb85ed4a71df0e5467d69c0bb937c27
Parents: 4f220bb
Author: Sergio Pena <se...@cloudera.com>
Authored: Fri Aug 26 12:00:44 2016 -0500
Committer: Sergio Pena <se...@cloudera.com>
Committed: Fri Aug 26 12:00:44 2016 -0500
----------------------------------------------------------------------
itests/pom.xml | 9 +++++++++
1 file changed, 9 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hive/blob/2493f86f/itests/pom.xml
----------------------------------------------------------------------
diff --git a/itests/pom.xml b/itests/pom.xml
index 426ba04..a452db3 100644
--- a/itests/pom.xml
+++ b/itests/pom.xml
@@ -84,6 +84,15 @@
if [[ ! -f $DOWNLOAD_DIR/$tarName ]]
then
curl -Sso $DOWNLOAD_DIR/$tarName $url
+ else
+ local md5File="$tarName".md5sum
+ curl -Sso $DOWNLOAD_DIR/$md5File "$url".md5sum
+ cd $DOWNLOAD_DIR
+ if ! md5sum -c $md5File; then
+ curl -Sso $DOWNLOAD_DIR/$tarName $url || return 1
+ fi
+
+ cd -
fi
tar -zxf $DOWNLOAD_DIR/$tarName -C $BASE_DIR
mv $BASE_DIR/spark-${spark.version}-bin-hadoop2-without-hive $BASE_DIR/$finalName