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

Blueprint API: Move host_count and host_predicate fields up one level

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.1.0
    • 2.1.0
    • blueprints
    • None

    Description

      Recently, during 2.1 development, API additions were made that allow a host count and host predicate to be specified for blueprint provision and scaling requests.

      The additions are documented in the Apache Jira: https://issues.apache.org/jira/browse/AMBARI-10750

      After some consideration and discussion, it has become clear that the host_count and host_predicate fields need to move up one level form their current location under hosts. Only explicitly specified hosts will be contained within "hosts".

      For example:

      {
        "blueprint" : "bp1",
        "host_groups" :[
          { 
            "name" : "master",  
            "hosts" : [          
              { 
                "fqdn" : "john2.novalocal"
              }
            ]
          },  
          { 
            "name" : "slave",   
            "host_count" : "5",
            "host_predicate" : "Hosts/cpu_count>1"   
          }
        ]
      }
      

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: