Return-Path: X-Original-To: apmail-hadoop-yarn-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-yarn-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 11E1217E28 for ; Fri, 7 Nov 2014 19:01:35 +0000 (UTC) Received: (qmail 89616 invoked by uid 500); 7 Nov 2014 19:01:34 -0000 Delivered-To: apmail-hadoop-yarn-issues-archive@hadoop.apache.org Received: (qmail 89565 invoked by uid 500); 7 Nov 2014 19:01:34 -0000 Mailing-List: contact yarn-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: yarn-issues@hadoop.apache.org Delivered-To: mailing list yarn-issues@hadoop.apache.org Received: (qmail 89553 invoked by uid 99); 7 Nov 2014 19:01:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Nov 2014 19:01:34 +0000 Date: Fri, 7 Nov 2014 19:01:34 +0000 (UTC) From: "Vinod Kumar Vavilapalli (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (YARN-2827) Fix bugs of yarn queue CLI MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/YARN-2827?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14202455#comment-14202455 ] Vinod Kumar Vavilapalli commented on YARN-2827: ----------------------------------------------- I had reviewed this at YARN-2647 which caused this. The patch looks good, +1. Will resubmit the trunk patch to Jenkins and then commit.. > Fix bugs of yarn queue CLI > -------------------------- > > Key: YARN-2827 > URL: https://issues.apache.org/jira/browse/YARN-2827 > Project: Hadoop YARN > Issue Type: Bug > Components: client > Reporter: Wangda Tan > Assignee: Wangda Tan > Priority: Critical > Attachments: YARN-2827-branch_2-1.patch, YARN-2827.1.patch, YARN-2827.1.patch > > > Need fix bugs: > 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) 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 > 3) When failed to get QueueInfo, should return non-zero exit code. > 4) Add tests for above. -- This message was sent by Atlassian JIRA (v6.3.4#6332)