[ 
https://issues.apache.org/jira/browse/YARN-3569?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14565233#comment-14565233
 ] 

Spandan Dutta commented on YARN-3569:
-------------------------------------

[~jianhe]. The use case I was thinking is as follows. Say for example if you 
have an instance of YarnClient and then you decide to find out what all queues 
does the RM currently have. So I do yarnClient.getAllQueues(). Now I decide to 
figure out what all applications are in each of these queues. For using the 
getApplications() function that you suggested, you have to iterate through the 
list of queueInfos returned and extract the name of each of the queues. It 
would be better and easier from the user perspective if he could just access a 
queue in the list and call queueinfo.getApplications() to get all the apps on 
the queue. Currently this always returns an empty list and patch provided 
should fix it.

On another note I have manually verified that if you do 
yanClient.getQueueInfo(queuename).getApplications() it does indeed returns the 
running apps in that queue. No reason as to why fixing the route from 
yarnClient.getAllQueues() should not be done.

> YarnClient.getAllQueues returns a list of queues that do not display running 
> apps.
> ----------------------------------------------------------------------------------
>
>                 Key: YARN-3569
>                 URL: https://issues.apache.org/jira/browse/YARN-3569
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: api
>    Affects Versions: 2.8.0
>            Reporter: Spandan Dutta
>            Assignee: Spandan Dutta
>         Attachments: YARN-3569.patch
>
>
> YarnClient.getAllQueues() returns a list of queues. If we pick a queue from 
> this list and call getApplications on it, we always get an empty list 
> even-though applications are running on that queue.



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

Reply via email to