You are correct that you need to: - 1. upload the blueprint to /api/v1/blueprints - 2. Then issue a cluster creation request to /api/v1/clusters/thenewcluster
https://cwiki.apache.org/confluence/display/AMBARI/Blueprints#Blueprints-BlueprintUsageOverview Your existing cluster was likely not made from a blueprint so /api/v1/blueprints would be empty. -- Hortonworks - We Do Hadoop Sean Roberts Partner Solutions Engineer - EMEA @seano On Nov 24, 2015, at 10:34, cs user <[email protected]<mailto:[email protected]>> wrote: Hi All, I've been looking at using blueprints to create a cluster. To do this, I have manually setup a cluster and then navigated to : :8080/api/v1/clusters/testcluster01?format=blueprint This has returned a json file which describes my cluster. I've then created a new cluster and I am trying to add the configuration via the json file from above, via a CURL post, with the json as the data. The api is returning: { "status" : 400, "message" : "The properties [Blueprints/stack_version, Blueprints/stack_name] specified in the request or predicate are not supported for the resource type Cluster." } At the end of my json file, it contains the following: "Blueprints" : { "stack_name" : "HDP", "stack_version" : "2.3" } I'm submitting the post request to : :8080/api/v1/clusters/testcluster01 Should this be working, or should I extract the minimum amount of data from the json file required to create my cluster and use this in a post request? I thought perhaps that before trying to create the cluster via the API, I would have to upload a blueprint (Perhaps the HDP blueprint mentioned above?). However, when I query the existing cluster, there are no blueprints available 8080/api/v1/blueprints/ { "href" : "http://server.some.domain:8080/api/v1/blueprints/", "items" : [ ] } Is it possible to capture the cluster config in this way from an existing cluster, setup via the UI, and setup a new cluster with it? Thanks!
