YARN-9529. Log correct cpu controller path on error while initializing CGroups. (Contributed by Jonathan Hung)

(cherry picked from commit 597fa47ad1)
This commit is contained in:
Haibo Chen 2019-05-06 11:55:07 -07:00
parent 6fce24fb40
commit c6573562cb
1 changed files with 1 additions and 1 deletions

View File

@ -482,7 +482,7 @@ public class CgroupsLCEResourcesHandler implements LCEResourcesHandler {
controllerPaths.put(CONTROLLER_CPU, controllerPath);
} else {
throw new IOException("Not able to enforce cpu weights; cannot write "
+ "to cgroup at: " + controllerPath);
+ "to cgroup at: " + f.getPath());
}
} else {
throw new IOException("Not able to enforce cpu weights; cannot find "