Browse Source

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

(cherry picked from commit 597fa47ad125c0871f5c4deb3a883e5b3341c67b)
Haibo Chen 6 years ago
parent
commit
c6573562cb

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

@@ -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 "