Update style toi get cappedMultiplier from conf

This commit is contained in:
n.fraison 2019-05-06 09:00:58 +02:00
parent 7c2027c32e
commit 94593ed0f9
1 changed files with 3 additions and 5 deletions

View File

@ -139,11 +139,9 @@ public class CgroupsLCEResourcesHandler implements LCEResourcesHandler {
.NM_LINUX_CONTAINER_CGROUPS_STRICT_RESOURCE_USAGE, .NM_LINUX_CONTAINER_CGROUPS_STRICT_RESOURCE_USAGE,
YarnConfiguration YarnConfiguration
.DEFAULT_NM_LINUX_CONTAINER_CGROUPS_STRICT_RESOURCE_USAGE); .DEFAULT_NM_LINUX_CONTAINER_CGROUPS_STRICT_RESOURCE_USAGE);
this.cappedMultiplier = this.cappedMultiplier = conf.getFloat(
conf YarnConfiguration.NM_LINUX_CONTAINER_CGROUPS_CAPPED_MULTIPLIER,
.getFloat( YarnConfiguration.DEFAULT_NM_LINUX_CONTAINER_CGROUPS_CAPPED_MULTIPLIER);
YarnConfiguration.NM_LINUX_CONTAINER_CGROUPS_CAPPED_MULTIPLIER,
YarnConfiguration.DEFAULT_NM_LINUX_CONTAINER_CGROUPS_CAPPED_MULTIPLIER);
int len = cgroupPrefix.length(); int len = cgroupPrefix.length();
if (cgroupPrefix.charAt(len - 1) == '/') { if (cgroupPrefix.charAt(len - 1) == '/') {