Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-9933

RMWebServices get-node-labels json response is missing root element

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Patch Available
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: webapp

      Description

      RMWebServices get-node-labels json response is missing root element. It does not have root element nodeLabelsInfo

      With no Node Label:

      {}
      

       

      With One Node Label:

      [yarn@yarndocker-1 centos]$ curl http://yarndocker-1:8088/ws/v1/cluster/get-node-labels
      {"nodeLabelInfo": {"name":"x","exclusivity":"true"} } 

       
      With Multiple Node label:

      [yarn@yarndocker-1 centos]$ curl http://yarndocker-1:8088/ws/v1/cluster/get-node-labels
      {"nodeLabelInfo": [
          {"name":"x","exclusivity":"true"}, 
          {"name":"y","exclusivity":"true"}
        ]
      }
      

       

        Attachments

        1. YARN-9933-001.patch
          18 kB
          Prabhu Joseph

          Activity

            People

            • Assignee:
              prabhujoseph Prabhu Joseph
              Reporter:
              prabhujoseph Prabhu Joseph
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: