Created
February 28, 2016 17:33
-
-
Save hkropp/9f5a98871f5ba4d6b8a6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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