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

Ability to set rack_info with blueprint

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.2.0
    • 2.2.1
    • ambari-server
    • None
    • Important

    Description

      Rack information (rack_info) can be set up with API call:

      {
        "RequestInfo": {
          "context": "Set Rack",
          "query": "Hosts/host_name.in(host-10-0-0-4.node.dc1.consul)"
        },
        "Body": {
          "Hosts": {
            "rack_info": "/dc1/rack1"
          }
        }
      }
      

      If the cluster was created with a blueprint and the rack information is set up afterwards with the above API call, then the services needs to be restarted. It would be better if we could set up rack_info immediately with blueprint something like this:

      {
        "blueprint" : "multi-node-hdfs-yarn",
        "default_password" : "my-super-secret-password",
        "host_groups" :[
          {
            "name" : "master", 
            "hosts" : [         
              {
                "fqdn" : "amb1.service.consul",
                "rack_info": "/dc1/rack1"
              }
            ]
          },
          {
            "name" : "slave_1", 
            "hosts" : [         
              {
                "fqdn" : "amb2.service.consul",
                "rack_info": "/dc1/rack1"
              }
            ]
          }
        ]
      }
      

      Attachments

        1. AMBARI-14600.v2.patch
          12 kB
          Laszlo Puskas

        Issue Links

          Activity

            People

              lpuskas Laszlo Puskas
              lpuskas Laszlo Puskas
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 72h
                  72h
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 72h
                  72h