From yarn-issues-return-125062-apmail-hadoop-yarn-issues-archive=hadoop.apache.org@hadoop.apache.org Fri Sep 22 16:48:05 2017 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 A37D610BD5 for ; Fri, 22 Sep 2017 16:48:05 +0000 (UTC) Received: (qmail 66612 invoked by uid 500); 22 Sep 2017 16:48:05 -0000 Delivered-To: apmail-hadoop-yarn-issues-archive@hadoop.apache.org Received: (qmail 66450 invoked by uid 500); 22 Sep 2017 16:48:05 -0000 Mailing-List: contact yarn-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list yarn-issues@hadoop.apache.org Received: (qmail 66434 invoked by uid 99); 22 Sep 2017 16:48:05 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Sep 2017 16:48:05 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 3BF0C1A5C76 for ; Fri, 22 Sep 2017 16:48:04 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id WYfzwZM1w2Qg for ; Fri, 22 Sep 2017 16:48:03 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 5CAEB60D99 for ; Fri, 22 Sep 2017 16:48:03 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 0428BE0288 for ; Fri, 22 Sep 2017 16:48:03 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id F0E0F2423A for ; Fri, 22 Sep 2017 16:48:00 +0000 (UTC) Date: Fri, 22 Sep 2017 16:48:00 +0000 (UTC) From: "Eric Payne (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (YARN-7116) CapacityScheduler Web UI: Queue's AM usage is always show on per-user's AM usage. 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-7116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16176700#comment-16176700 ] Eric Payne commented on YARN-7116: ---------------------------------- [~leftnoteasy], [~sunilg] If there are no objections, I'll backport this to 2.8. > CapacityScheduler Web UI: Queue's AM usage is always show on per-user's AM usage. > --------------------------------------------------------------------------------- > > Key: YARN-7116 > URL: https://issues.apache.org/jira/browse/YARN-7116 > Project: Hadoop YARN > Issue Type: Bug > Components: capacity scheduler, webapp > Affects Versions: 2.9.0, 2.8.1, 3.0.0-alpha4 > Reporter: Wangda Tan > Assignee: Wangda Tan > Fix For: 2.9.0, 3.0.0-beta1 > > Attachments: YARN-7116.001.patch > > > On CapacityScheduler's web UI, AM usage of different users belong to the same queue always shows queue's AM usage. > The root cause is: under CapacitySchedulerPage. > {code} > tbody.tr().td(userInfo.getUsername()) > .td(userInfo.getUserResourceLimit().toString()) > .td(resourcesUsed.toString()) > .td(resourceUsages.getAMLimit().toString()) > .td(amUsed.toString()) > .td(Integer.toString(userInfo.getNumActiveApplications())) > .td(Integer.toString(userInfo.getNumPendingApplications()))._(); > {code} > Instead of amUsed.toString(), it should use userInfo.getAmUsed(). -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: yarn-issues-help@hadoop.apache.org