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 3B59D110DD for ; Fri, 8 Aug 2014 01:52:13 +0000 (UTC) Received: (qmail 31866 invoked by uid 500); 8 Aug 2014 01:52:13 -0000 Delivered-To: apmail-hadoop-yarn-issues-archive@hadoop.apache.org Received: (qmail 31826 invoked by uid 500); 8 Aug 2014 01:52:13 -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 31806 invoked by uid 99); 8 Aug 2014 01:52:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Aug 2014 01:52:13 +0000 Date: Fri, 8 Aug 2014 01:52:12 +0000 (UTC) From: "Sandy Ryza (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (YARN-807) When querying apps by queue, iterating over all apps is inefficient and limiting 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-807?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14090172#comment-14090172 ] Sandy Ryza commented on YARN-807: --------------------------------- Hi [~leftnoteasy], I think the expected behavior should be to include both active and pending apps. If that changed with this patch, then I introduced a bug. Perhaps more worryingly, it appears that this patch makes it so that completed apps aren't returned when querying by queue, which I don't think is necessarily desirable behavior. > When querying apps by queue, iterating over all apps is inefficient and limiting > --------------------------------------------------------------------------------- > > Key: YARN-807 > URL: https://issues.apache.org/jira/browse/YARN-807 > Project: Hadoop YARN > Issue Type: Improvement > Affects Versions: 2.0.4-alpha > Reporter: Sandy Ryza > Assignee: Sandy Ryza > Fix For: 2.3.0 > > Attachments: YARN-807-1.patch, YARN-807-2.patch, YARN-807-3.patch, YARN-807-4.patch, YARN-807.patch > > > The question "which apps are in queue x" can be asked via the RM REST APIs, through the ClientRMService, and through the command line. In all these cases, the question is answered by scanning through every RMApp and filtering by the app's queue name. > All schedulers maintain a mapping of queues to applications. I think it would make more sense to ask the schedulers which applications are in a given queue. This is what was done in MR1. This would also have the advantage of allowing a parent queue to return all the applications on leaf queues under it, and allow queue name aliases, as in the way that "root.default" and "default" refer to the same queue in the fair scheduler. -- This message was sent by Atlassian JIRA (v6.2#6252)