Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-13628

Support to retrieve specific property from configuration via REST API

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.7.3
    • Fix Version/s: 2.9.0, 3.0.0-alpha2, 2.8.3
    • Component/s: conf
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Currently we can use rest API to retrieve all configuration properties per daemon, but unable to get a specific property by name. This causes extra parse work at client side when dealing with Hadoop configurations, and also it's quite over head to send all configuration in a http response over network. Propose to support following a name parameter in the http request, by issuing

      curl --header "Accept:application/json" http://${RM_HOST}/conf?name=yarn.nodemanager.aux-services
      

      get output

      {"property"{"key":"yarn.resourcemanager.hostname","value":"${RM_HOST}","isFinal":false,"resource":"yarn-site.xml"}}
      

      This change is fully backwards compatible.

        Attachments

        1. HADOOP-13628.06.patch
          27 kB
          Weiwei Yang
        2. HADOOP-13628.05.patch
          26 kB
          Weiwei Yang
        3. 404_error_browser.png
          80 kB
          Weiwei Yang
        4. HADOOP-13628.04.patch
          26 kB
          Weiwei Yang
        5. HADOOP-13628.03.patch
          26 kB
          Weiwei Yang
        6. HADOOP-13628.02.patch
          12 kB
          Weiwei Yang
        7. HADOOP-13628.01.patch
          12 kB
          Weiwei Yang

          Activity

            People

            • Assignee:
              cheersyang Weiwei Yang
              Reporter:
              cheersyang Weiwei Yang
            • Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: