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 "Bibin A Chundatt (JIRA)" <ji...@apache.org> on 2015/09/07 13:06:45 UTC

[jira] [Updated] (YARN-4114) In RM REST API for cluster/scheduler nodelabels in queues not listed properly

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

Bibin A Chundatt updated YARN-4114:
-----------------------------------
    Attachment: 0001-YARN-4114.patch

Hi [~leftnoteasy]

The response will be as below 
{code}
<accessibleLabels>a3,b3</accessibleLabels>
{code}

Attaching patch as per above
Any other queue level label update for rest API need to be added we can add  in this jira. Please do review.

> In RM  REST API for cluster/scheduler nodelabels in queues not listed properly
> ------------------------------------------------------------------------------
>
>                 Key: YARN-4114
>                 URL: https://issues.apache.org/jira/browse/YARN-4114
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: resourcemanager
>            Reporter: Bibin A Chundatt
>            Assignee: Bibin A Chundatt
>         Attachments: 0001-YARN-4114.patch
>
>
> *Request used*
> Accept: application/xml
> GET http://<rm http address:port>/ws/v1/cluster/scheduler
> Response
> {code}
> <queue xsi:type="capacitySchedulerLeafQueueInfo">
> <capacity>10.0</capacity>
> ...
> <state>RUNNING</state>
> <resourcesUsed>...</resourcesUsed>
> <hideReservationQueues>false</hideReservationQueues>
> <nodeLabels>1</nodeLabels>
> <nodeLabels>3</nodeLabels>
> <allocatedContainers>0</allocatedContainers>
> <reservedContainers>0</reservedContainers>
> <pendingContainers>0</pendingContainers>
> ..
> </queue>
> {code}
> Nodelabels for queue should be as below
> <nodeLabels>
>    <nodeLabel>1</nodeLabel>
>    <nodeLabel>3</nodeLabel>
> </nodeLabels>
> or 
> <nodeLabels>1,3</nodeLabels>



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)