You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-dev@hadoop.apache.org by "steven W (JIRA)" <ji...@apache.org> on 2019/03/25 15:09:00 UTC
[jira] [Created] (YARN-9407) getComputedResourceLimitForActiveUsers
debug line does not show username
steven W created YARN-9407:
------------------------------
Summary: getComputedResourceLimitForActiveUsers debug line does not show username
Key: YARN-9407
URL: https://issues.apache.org/jira/browse/YARN-9407
Project: Hadoop YARN
Issue Type: Improvement
Components: capacityscheduler
Affects Versions: 2.7.3
Reporter: steven W
Debug logging of the capacityscheduler doesn't log the username when printing the calculated user limit. In general you can deduct what user it is, but it would be great if the username is added to the logline.
Example logline:
2019-03-25 11:05:08,956 DEBUG capacity.UsersManager (UsersManager.java:getComputedResourceLimitForActiveUsers(525)) - userLimit is fetched. userLimit=<memory:3584, vCores:2>, userSpecificUserLimit=<memory:3584, vCores:2>, schedulingMode=RESPECT_PARTITION_EXCLUSIVITY, partition=
Change code block in function {color:#6f42c1}getComputedResourceLimitForActiveUsers{color:#001000}
{color}{color}{color:#6f42c1}{color:#001000}in file {color}{color}java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/capacity/UsersManager.java
The actual block printing the line:
LOG.debug("userLimit is fetched. userLimit={}, userSpecificUserLimit={},"
+ " schedulingMode={}, partition={}", userLimitResource,
userSpecificUserLimit, schedulingMode, nodePartition);
should be changed to contain the username
It's a minor change and would help debugging
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-dev-help@hadoop.apache.org