Skip to content

Instantly share code, notes, and snippets.

@abajwa-hw
Created October 19, 2016 14:41
Show Gist options
  • Save abajwa-hw/af1d3cf29da3ed1ba06408cb9298123c to your computer and use it in GitHub Desktop.
Save abajwa-hw/af1d3cf29da3ed1ba06408cb9298123c to your computer and use it in GitHub Desktop.
Install Ambari and HDF 2.0 mpack on RHEL7
#Based on http://docs.hortonworks.com/HDPDocuments/HDF2/HDF-2.0.0/bk_ambari-installation/content/index.html
export host_os=centos7
export ambari_version=2.4.1.0
export hdf_ambari_mpack_url="http://public-repo-1.hortonworks.com/HDF/${host_os}/2.x/updates/2.0.0.0/tars/hdf_ambari_mp/hdf-ambari-mpack-2.0.0.0-579.tar.gz"
export ambari_repo="http://public-repo-1.hortonworks.com/ambari/${host_os}/2.x/updates/${ambari_version}/ambari.repo"
#1. turn off firewall
systemctl stop firewalld.service
systemctl disable firewalld
#2. download Ambari repo
yum install -y wget
wget ${ambari_repo} -O /etc/yum.repos.d/ambari.repo
yum clean all
#3. install and setup Ambari server
yum install ambari-server -y
ambari-server setup -s
#4. Install HDF 2.0 mpack
ambari-server install-mpack --mpack=${hdf_ambari_mpack_url} --purge --verbose
#5. Start Ambari server
ambari-server start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment