Prabhu Joseph created YARN-9933:
-----------------------------------
Summary: RMWebServices get-node-labels response type is not same
Key: YARN-9933
URL: https://issues.apache.org/jira/browse/YARN-9933
Project: Hadoop YARN
Issue Type: Bug
Reporter: Prabhu Joseph
Assignee: Prabhu Joseph
RMWebServices get-node-labels response type is not same. It returns object if
one node label is present and an array in case of multiple node label is
present.
*With One Node Label:*
{code:java}
[yarn@yarndocker-1 centos]$ curl
http://yarndocker-1:8088/ws/v1/cluster/get-node-labels
{"nodeLabelInfo": {"name":"x","exclusivity":"true"} } {code}
*With Multiple Node label:*
{code:java}
[yarn@yarndocker-1 centos]$ curl
http://yarndocker-1:8088/ws/v1/cluster/get-node-labels
{"nodeLabelInfo": [
{"name":"x","exclusivity":"true"},
{"name":"y","exclusivity":"true"}
]
}
{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]