Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/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
You can’t perform that action at this time.