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

Wangda Tan updated YARN-2647:
-----------------------------
    Attachment: 0009-YARN-2647-trunk-full.patch

Hmm.. there're some issues when trying to run queue CLI locally.
1) args of queue CLI is without "queue" even if you run with "yarn queue 
-status ..", the args is \["-status", "..."\]. The assumption is incorrect.
2) Modified tests according to the #1.
3) It is possible that there's no related QueueInfo with specified queue name, 
and null will be returned from YarnClient, so NPE will raise. Added a check for 
it, and will print proper message:
{code}
yarn queue -status root.default
...
Failed to get queue by given queue name=root.default please check
{code}
4) Added a test for #3

> Add yarn queue CLI to get queue infos
> -------------------------------------
>
>                 Key: YARN-2647
>                 URL: https://issues.apache.org/jira/browse/YARN-2647
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>          Components: client
>            Reporter: Wangda Tan
>            Assignee: Sunil G
>         Attachments: 0001-YARN-2647.patch, 0002-YARN-2647.patch, 
> 0003-YARN-2647.patch, 0004-YARN-2647.patch, 0005-YARN-2647.patch, 
> 0006-YARN-2647.patch, 0007-YARN-2647.patch, 0008-YARN-2647-1.patch, 
> 0008-YARN-2647-full-branch-2.patch, 0008-YARN-2647-full.patch, 
> 0008-YARN-2647.patch, 0009-YARN-2647-trunk-full.patch
>
>




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

Reply via email to