tinkerpop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From spmalle...@apache.org
Subject [01/26] tinkerpop git commit: CTR: Download Hadoop from Apache release archives, if the requested version is not available on the download mirrors. [Forced Update!]
Date Tue, 03 Oct 2017 18:20:46 GMT
Repository: tinkerpop
Updated Branches:
  refs/heads/TINKERPOP-1784 4a421d4eb -> 8ed815cbf (forced update)


CTR: Download Hadoop from Apache release archives, if the requested version is not available
on the download mirrors.


Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/7b0bd957
Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/7b0bd957
Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/7b0bd957

Branch: refs/heads/TINKERPOP-1784
Commit: 7b0bd95745aa6960fdbcafcd7e45cb2c1e499548
Parents: e509b6b
Author: Daniel Kuppitz <daniel_kuppitz@hotmail.com>
Authored: Mon Oct 2 09:56:45 2017 -0700
Committer: Daniel Kuppitz <daniel_kuppitz@hotmail.com>
Committed: Mon Oct 2 09:56:45 2017 -0700

----------------------------------------------------------------------
 docker/hadoop/install.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/7b0bd957/docker/hadoop/install.sh
----------------------------------------------------------------------
diff --git a/docker/hadoop/install.sh b/docker/hadoop/install.sh
index 29dd9e1..5b61519 100755
--- a/docker/hadoop/install.sh
+++ b/docker/hadoop/install.sh
@@ -24,9 +24,10 @@ HADOOP_BASENAME="hadoop-${HADOOP_VERSION}"
 
 APACHE_MIRROR=$(curl -s http://www.apache.org/dyn/closer.cgi | grep -o '<a href=".*"><strong>'
| cut -f2 -d '"' | head -n1)
 HADOOP_DOWNLOAD_URL="${APACHE_MIRROR}hadoop/common/${HADOOP_BASENAME}/${HADOOP_BASENAME}.tar.gz"
+ALT_HADOOP_DOWNLOAD_URL="https://archive.apache.org/dist/hadoop/common/${HADOOP_BASENAME}/${HADOOP_BASENAME}.tar.gz"
 
 pushd /usr/local/lib > /dev/null
-curl ${HADOOP_DOWNLOAD_URL} | tar xz
+(curl -f ${HADOOP_DOWNLOAD_URL} || curl ${ALT_HADOOP_DOWNLOAD_URL}) | tar xz
 popd > /dev/null
 
 cat >> ~/.bashrc <<EOF


Mime
View raw message