Skip to content

Commit 597fa47

Browse files
committed
YARN-9529. Log correct cpu controller path on error while initializing CGroups. (Contributed by Jonathan Hung)
1 parent fb7c1ca commit 597fa47

File tree

1 file changed

+1
-1
lines changed
  • hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/util

1 file changed

+1
-1
lines changed

hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/util/CgroupsLCEResourcesHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ private void initializeControllerPaths() throws IOException {
476476
controllerPaths.put(CONTROLLER_CPU, controllerPath);
477477
} else {
478478
throw new IOException("Not able to enforce cpu weights; cannot write "
479-
+ "to cgroup at: " + controllerPath);
479+
+ "to cgroup at: " + f.getPath());
480480
}
481481
} else {
482482
throw new IOException("Not able to enforce cpu weights; cannot find "

0 commit comments

Comments
 (0)