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

Jian He commented on YARN-3569:
-------------------------------

[~spandan], what is your use case ? If you want to get applications for the 
given queues, you can use below API in YarnClient.
{code}
  public abstract List<ApplicationReport> getApplications(Set<String> queues,
      Set<String> users, Set<String> applicationTypes,
      EnumSet<YarnApplicationState> applicationStates)
{code}

> 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