[
https://issues.apache.org/jira/browse/YARN-9933?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Prabhu Joseph updated YARN-9933:
--------------------------------
Summary: RMWebServices get-node-labels json response is missing root
element (was: RMWebServices get-node-labels response type is not same)
> RMWebServices get-node-labels json response is missing root element
> -------------------------------------------------------------------
>
> Key: YARN-9933
> URL: https://issues.apache.org/jira/browse/YARN-9933
> Project: Hadoop YARN
> Issue Type: Bug
> Components: webapp
> Reporter: Prabhu Joseph
> Assignee: Prabhu Joseph
> Priority: Major
> Labels: incompatibleChange
>
> 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]