Created 02-14-2017 01:03 PM
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.
Created 02-14-2017 01:14 PM
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
.
Created 02-14-2017 01:14 PM
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
.
Created 05-02-2017 08:41 AM
How do you export the cluster hostmapping file?
Created 05-02-2017 09:13 AM
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....