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

Wangda Tan commented on YARN-3939:
----------------------------------

[~bibinchundatt], thanks for working on this patch, this is same problem of 
YARN-3932, the fix is fine in short term. I suggest to handle them together, 
would you mind to merge the two patches?

> CS schedule Userlevel resource usage shown is zero for NodeLabel partition
> --------------------------------------------------------------------------
>
>                 Key: YARN-3939
>                 URL: https://issues.apache.org/jira/browse/YARN-3939
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: capacityscheduler
>         Environment: Suse 11 SP3 
>            Reporter: Bibin A Chundatt
>            Assignee: Bibin A Chundatt
>         Attachments: 0001-YARN-3939.patch, ResourceUsage.jpg
>
>
> Submit application to queue and particular node label partition
> Check the resource usage for particular user in queue
> {{LeafQueue#getUsers()}}
> {code}
>   public synchronized ArrayList<UserInfo> getUsers() {
>     ArrayList<UserInfo> usersToReturn = new ArrayList<UserInfo>();
>     for (Map.Entry<String, User> entry : users.entrySet()) {
>       User user = entry.getValue();
>       usersToReturn.add(new UserInfo(entry.getKey(), Resources.clone(user
>           .getUsed()), user.getActiveApplications(), user
>           .getPendingApplications(), Resources.clone(user
>           .getConsumedAMResources()), Resources.clone(user
>           .getUserResourceLimit())));
>     }
>     return usersToReturn;
>   }
> {code}
> Should get usage for particular user and label



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

Reply via email to