Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-13364 Parameterize stack information used by common services
  3. AMBARI-14435

Parameterize distro-specific stack information for ZOOKEEPER

    XMLWordPrintableJSON

Details

    • Technical task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.2.0, 2.2.1
    • 2.4.0
    • ambari-server
    • None

    Description

      Apply the stack featurization prototype detailed on AMBARI-13364 to ZOOKEEPER service plus the comments and reviews received on:

      This patch removes the hardcoded stack versions and stack specific paths into ZK common-services code

      stack_features is now a property in .json format in HDP/2.0.6/properties/stack_features.json
      With the structure:

      { "stack_features": [ { "name": "feature1", "description" : "Feature1 support", "min_version" : "Y.Y.Y.Y" , "max_version" : "X.X.X.X"}

      ,
      ...
      ]
      }
      where min_version/max_version are optional constraints.

      The upgrade constants, such has ROLLING_UPGRADE = "rolling_upgrade" has been added to in a new StackFeature in resource_management/libraries/functions/constants.py

      Stack featurization was added as part of the HDP stack configurations on /HDP/2.0.6/configuration/cluster-env.xml, introducing a new stack_features property

      New resource_management/libraries/functions/stack_fetaures.py has been introduced to parse the json file and called from service code to check if the stack supports the required feature.

      Attachments

        1. AMBARI-14435.patch
          17 kB
          Juanjo Marron
        2. 0001-AMBARI-14435-Parameterize-distro-specific-stack-info.patch
          11 kB
          Jayush Luniya

        Issue Links

          Activity

            People

              jmarron Juanjo Marron
              jmarron Juanjo Marron
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: