You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "Prabhu Joseph (Jira)" <ji...@apache.org> on 2019/10/23 17:39:00 UTC

[jira] [Updated] (YARN-9933) RMWebServices get-node-labels response type is not same

     [ https://issues.apache.org/jira/browse/YARN-9933?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Prabhu Joseph updated YARN-9933:
--------------------------------
    Labels: incompatibleChange  (was: )

> 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
>          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: yarn-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org