ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Speidel (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AMBARI-8458) Add support for "add hosts" specifying host name, blueprint name and host group name
Date Wed, 26 Nov 2014 18:31:12 GMT
John Speidel created AMBARI-8458:
------------------------------------

             Summary: Add support for "add hosts" specifying host name, blueprint name and
host group name 
                 Key: AMBARI-8458
                 URL: https://issues.apache.org/jira/browse/AMBARI-8458
             Project: Ambari
          Issue Type: Improvement
            Reporter: John Speidel
            Assignee: John Speidel
             Fix For: 2.0.0


Provide a higher level api for host provisioning.
This api will accept a host name, blueprint name and host group.
The result of this api call will be fully operational hosts added to the existing cluster
with configuration and components which are defined in the specified blueprint/host_group.
 All components on the added hosts will be installed and started.

All hosts must be reachable via ambari server and have the ambari agent running and registered
with the ambari server prior to using this api.  

This is an asynchronous api so it will return the standard asynchronous response.
{code}
202 - Accepted
{
  "href" : "http://AMBARI_HOST:8080/api/v1/clusters/c1/requests/2",
  "Requests" : {
    "id" : 2,
    "status" : "InProgress"
  }
}
{code}

This api will support adding a single host or multiple hosts.

h4. Single Host:
{code}
POST http://AMBARI_HOST:8080/api/v1/clusters/c1/hosts/newHostName.domain

{
    "blueprint" : "my_blueprint",
    "host_group" : "slave"
}
{code}

h4. Multiple Hosts
{code}
POST http://AMBARI_HOST:8080/api/v1/clusters/c1/hosts

[
  {
      "blueprint" : "my_blueprint
      "host_group" : "slave",
      "host_name" : "host2.domain"
  },
  {
      "blueprint" : "my_blueprint",
      "host_group" : "slave",
      "host_name" : "host5.domain"
  }
]
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message