Support Questions

Find answers, ask questions, and share your expertise

ambari export blueprint

avatar
Rising Star

Initially, I deployed a blueprint to ambari.Having used the nice ambari UI to create some configuration changes I would like to know how to export the current cluster configuration as a blueprint.

If this is not possible, how can I access the "default" configuration to know the config values which need to be passed in a blueprint.

1 ACCEPTED SOLUTION

avatar
Master Mentor

@Georg Heiler

You can export the blueprint of your current cluster as :

http://erie1.example.com:8080/api/v1/clusters/ErieCluster?format=blueprint

.

Please see: https://cwiki.apache.org/confluence/display/AMBARI/Blueprints

To export a blueprint from an existing cluster:

curl -H "X-Requested-By: ambari" -X GET -u admin:admin http://c6401.ambari.apache.org:8080/api/v1/clusters/TestCluster?format=blueprint

.

Also get the blueprint registered:

curl -H "X-Requested-By: ambari" -X GET -u admin:admin http://c6401.ambari.apache.org:8080/api/v1/blueprints

.

View solution in original post

3 REPLIES 3

avatar
Master Mentor

@Georg Heiler

You can export the blueprint of your current cluster as :

http://erie1.example.com:8080/api/v1/clusters/ErieCluster?format=blueprint

.

Please see: https://cwiki.apache.org/confluence/display/AMBARI/Blueprints

To export a blueprint from an existing cluster:

curl -H "X-Requested-By: ambari" -X GET -u admin:admin http://c6401.ambari.apache.org:8080/api/v1/clusters/TestCluster?format=blueprint

.

Also get the blueprint registered:

curl -H "X-Requested-By: ambari" -X GET -u admin:admin http://c6401.ambari.apache.org:8080/api/v1/blueprints

.

avatar
New Contributor

How do you export the cluster hostmapping file?

avatar
Master Mentor

@Sandeep Rai

You will need to write the hostname mapping file to define the Hostname (FQDN) mapping with the hostgroups,

Blueprint File does not contain the actual Hostnames, Instead it uses the placeholders for the hosts like 'host_group_2', 'host_group_3' .etc.You will need to provide another JSON file to specify the hostgroup mapping. For more practice example please refer to: https://github.com/abajwa-hw/ambari-workshops/blob/master/blueprints/cluster-4node.jsonAnd https://cwiki.apache.org/confluence/display/AMBARI/Blueprints#Blueprints-ExampleClusterCreationTempl...

.