I think others can help you with the blueprint-style add host call. In the meantime, you should also look at https://cwiki.apache.org/confluence/display/AMBARI/Bulk+install+components+on+selected+hosts
Thanks, Yusaku From: Pratik Gadiya <[email protected]<mailto:[email protected]>> Reply-To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>> Date: Sunday, May 17, 2015 4:22 AM To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>> Subject: RE: Adding Hosts to Existing Cluster | Ambari 1.7.0 Jeff, I had a look on the link which you had provided, however I am not sure why it didn't worked for me. Below is the command which I tried, Command: curl --user admin:admin -H "X-Requested-By: ambari" -i -X POST -d '{"blueprint_name": "mymasterblueprint", "host_group": "compute"}' https://XX.XX.XX.XX:8443/api/v1/clusters/CLUSTER/hosts/vmkdev0027.persistent.com Response: HTTP/1.1 400 Bad Request Set-Cookie: AMBARISESSIONID=15w0nek4yww411pi8iqy70c8u5;Path=/ Expires: Thu, 01 Jan 1970 00:00:00 GMT Content-Type: text/plain Content-Length: 160 Server: Jetty(7.6.7.v20120910) { "status" : 400, "message" : "The properties [blueprint, host_group] specified in the request or predicate are not supported for the resource type Host." } Please let me know if I have missed something. Note : vmkdev0027.persistent.com - Is the host which I need to add, CLUSTER - Specified in the URL is my cluster name Thanks & Regards, Pratik From: Jeff Sposetti [mailto:[email protected]] Sent: Sunday, May 17, 2015 1:15 PM To: [email protected]<mailto:[email protected]> Subject: Re: Adding Hosts to Existing Cluster | Ambari 1.7.0 Have you looked at using Blueprints API for "add host"? https://issues.apache.org/jira/browse/AMBARI-8458 ________________________________ From: Pratik Gadiya <[email protected]<mailto:[email protected]>> Sent: Sunday, May 17, 2015 1:57 AM To: [email protected]<mailto:[email protected]> Subject: Adding Hosts to Existing Cluster | Ambari 1.7.0 Hi All, I want to add hosts to the existing hadoop cluster which is deployed via ambari rest api's. For the same, I am referring to link https://cwiki.apache.org/confluence/display/AMBARI/Add+a+host+and+deploy+components+using+APIs In the above link, we can observe that we have to make POST REST calls to install the services on the newly added hosts. Here the number of such REST calls would be equivalent to number of services which we want to install (like shown as below ) [cid:[email protected]] I am wondering, if there is any way by which I can install this many number of services such as DATANODE, GANGLIA_MONITOR, NODEMANAGER etc.. in a single REST call to the newly added hosts. Explaining with a small example of that REST call body is much appreciated. Thanks, Pratik DISCLAIMER ========== This e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Ltd. does not accept any liability for virus infected mails. DISCLAIMER ========== This e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Ltd. does not accept any liability for virus infected mails.
