Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-8458

Add support for "add hosts" specifying host name, blueprint name and host group name

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.0.0
    • None
    • None

    Description

      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.

      202 - Accepted
      {
        "href" : "http://AMBARI_HOST:8080/api/v1/clusters/c1/requests/2",
        "Requests" : {
          "id" : 2,
          "status" : "InProgress"
        }
      }
      

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

      Single Host:

      POST http://AMBARI_HOST:8080/api/v1/clusters/c1/hosts/newHostName.domain
      
      {
          "blueprint" : "my_blueprint",
          "host_group" : "slave"
      }
      

      Multiple Hosts

      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"
        }
      ]
      

      Attachments

        Issue Links

          Activity

            People

              jspeidel John Speidel
              jspeidel John Speidel
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: