Ambari is an provisioning and management tool for Hadoop clusters and Hortonworks, Pivotal and IBM are among the committers and contributers to the Apache Ambari project. One of the newer and powerful features of Ambari is the Blueprint. An Ambari blueprint provides the layout and configuration of a cluster much like a building architecture blueprint. Instantiating a cluster from a blueprint also requires a cluster template which will associate hostnames to hostgroup placeholders in the blueprint. Below are the basic REST API commands for extracting a blueprint from an existing Ambari-managed cluster.
The form of the REST command when using curl:
curl -H "X-Requested-By: ambari" -X GET -u : ://:/api/v1/clusters/?format=blueprint
Example blueprint request:
curl -H "X-Requested-By: ambari" -X GET -u admin:admin http://ambari.client.com:8080/api/v1/clusters/prod1?format=blueprint
Use the “-k” option for the HTTPS protocol:
curl -k -H "X-Requested-By: ambari" -X GET -u admin:admin https://ambari.client.com:8443/api/v1/clusters/prod1?format=blueprint