From c6573562cbc43832e9332989996e5d07b8bce9b0 Mon Sep 17 00:00:00 2001 From: Haibo Chen Date: Mon, 6 May 2019 11:55:07 -0700 Subject: [PATCH] YARN-9529. Log correct cpu controller path on error while initializing CGroups. (Contributed by Jonathan Hung) (cherry picked from commit 597fa47ad125c0871f5c4deb3a883e5b3341c67b) --- .../server/nodemanager/util/CgroupsLCEResourcesHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/util/CgroupsLCEResourcesHandler.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/util/CgroupsLCEResourcesHandler.java index 54b6e1c170b..a73dcbe9134 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/util/CgroupsLCEResourcesHandler.java +++ b/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 "