Skip to content

Instantly share code, notes, and snippets.

@DhruvKumar
DhruvKumar / setup_hdf_blueprint.sh
Created August 26, 2016 17:33 — forked from abajwa-hw/setup_hdf_blueprint.sh
Setup HDF via blueprints
# Sample script to deploy HDF via blueprint
# - Installs Ambari server/agents
# - Builds/installs requested HDF mpack version (based on build number)
# - Uses ambari-bootstrap to generate blueprint based on stack advisor recommendation and starts cluster install
# - Optionally: installs KDC, sets up postgres for Ranger, allows customizations of config properties and number of Nifi nodes
#
# Usage: Run below to invoke this script. You can customize the functionality by setting env vars e.g.
# wget https://gist.github.com/abajwa-hw/ae4125c5154deac6713cdd25d2b83620/raw -O setup_hdf_blueprint.sh ; chmod +x setup_hdf_blueprint.sh; export hdf_build=493; export host_count=3; export install_nifi_on_all_nodes=true; export use_default_configs=false; ./setup_hdf_blueprint.sh ;
# Note for multi-node install, you will need to install/register agents on other nodes first using below (replace <AMBARI_SERVER_HOSTNAME>)