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-1661 Commit: 7b0bd95745aa6960fdbcafcd7e45cb2c1e499548 Parents: e509b6b Author: Daniel Kuppitz <daniel_kupp...@hotmail.com> Authored: Mon Oct 2 09:56:45 2017 -0700 Committer: Daniel Kuppitz <daniel_kupp...@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