Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

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 amolthacker/0180384669c68f58bc41745cb28746e3 to your computer and use it in GitHub Desktop.
Save amolthacker/0180384669c68f58bc41745cb28746e3 to your computer and use it in GitHub Desktop.
#!/bin/bash
BLUEPRINT_NAME="Data Governance: Apache Atlas, Apache Ranger"
BLUEPRINT_DESCRIPTION="Useful for Data Governance and Security using Apache Atlas and Apache Ranger"
jq --arg bpname "blueprint_name" --arg name ${BLUEPRINT_NAME} '.Blueprints[$bpname] = $name' < ambari-blueprint.json > ambari-blueprint-updated.json
cb blueprint create from-file --file ambari-blueprint-updated.json --name ${BLUEPRINT_NAME} --description ${BLUEPRINT_DESCRIPTION}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment