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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • None
    • None
    • 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

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

            Dates

              Created:
              Updated: