hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bibin A Chundatt (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (YARN-3932) SchedulerApplicationAttempt#getResourceUsageReport and UserInfo should based on total-used-resources
Date Wed, 22 Jul 2015 19:06:05 GMT

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

Bibin A Chundatt commented on YARN-3932:
----------------------------------------

Thanks [~leftnoteasy]  for review and commit.

> SchedulerApplicationAttempt#getResourceUsageReport and UserInfo should based on total-used-resources
> ----------------------------------------------------------------------------------------------------
>
>                 Key: YARN-3932
>                 URL: https://issues.apache.org/jira/browse/YARN-3932
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: resourcemanager
>            Reporter: Bibin A Chundatt
>            Assignee: Bibin A Chundatt
>             Fix For: 2.8.0
>
>         Attachments: 0001-YARN-3932.patch, 0002-YARN-3932.patch, 0003-YARN-3932.patch,
0004-YARN-3932.patch, 0005-YARN-3932.patch, 0006-YARN-3932.patch, ApplicationReport.jpg, TestResult.jpg
>
>
> Application Resource Report shown wrong when node Label is used.
> 1.Submit application with NodeLabel
> 2.Check RM UI for resources used 
> Allocated CPU VCores and Allocated Memory MB is always {{zero}}
> {code}
>  public synchronized ApplicationResourceUsageReport getResourceUsageReport() {
>     AggregateAppResourceUsage runningResourceUsage =
>         getRunningAggregateAppResourceUsage();
>     Resource usedResourceClone =
>         Resources.clone(attemptResourceUsage.getUsed());
>     Resource reservedResourceClone =
>         Resources.clone(attemptResourceUsage.getReserved());
>     return ApplicationResourceUsageReport.newInstance(liveContainers.size(),
>         reservedContainers.size(), usedResourceClone, reservedResourceClone,
>         Resources.add(usedResourceClone, reservedResourceClone),
>         runningResourceUsage.getMemorySeconds(),
>         runningResourceUsage.getVcoreSeconds());
>   }
> {code}
> should be {{attemptResourceUsage.getUsed(label)}}



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

Mime
View raw message