You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-dev@hadoop.apache.org by "Prabhu Joseph (Jira)" <ji...@apache.org> on 2019/10/23 15:08:00 UTC
[jira] [Created] (YARN-9933) RMWebServices get-node-labels response
type is not same
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: yarn-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-dev-help@hadoop.apache.org