Skip to content

Instantly share code, notes, and snippets.

@hkropp
Created February 28, 2016 17:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hkropp/9f5a98871f5ba4d6b8a6 to your computer and use it in GitHub Desktop.
Save hkropp/9f5a98871f5ba4d6b8a6 to your computer and use it in GitHub Desktop.
#!/bin/bash
#centos6, centos7, suse11sp3, ubuntu12, ubuntu14, debian6, debian7
OS=centos6
# 2.3.0, 2.3.4
RELEASE="2.3.4"
while [[ $# > 1 ]]
do
key="$1"
case $key in
-o|--os)
OS="$2"
shift
;;
-r|--release)
RELEASE="$2"
shift
;;
*)
# unknown option
;;
esac
shift
done
echo "Downloading HDP $RELEASE for $OS"
wget http://public-repo-1.hortonworks.com/HDP/$OS/2.x/updates/$RELEASE.0/HDP-$RELEASE.0-$OS-rpm.tar.gz
#wget http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.20/repos/centos6/HDP-UTILS-1.1.0.20-centos6.tar.gz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment