From f164568b47d24aab9794fa50f7e8dc3f2cc9ccde Mon Sep 17 00:00:00 2001 From: Weiwei Yang Date: Wed, 29 Aug 2018 10:46:13 +0800 Subject: [PATCH] YARN-8723. Fix a typo in CS init error message when resource calculator is not correctly set. Contributed by Abhishek Modi. (cherry picked from commit 3fa46394214181ed1cc7f06b886282bbdf67a10f) --- .../resourcemanager/scheduler/capacity/CapacityScheduler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/capacity/CapacityScheduler.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/capacity/CapacityScheduler.java index 1467476be56..840a31d57a2 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/capacity/CapacityScheduler.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/capacity/CapacityScheduler.java @@ -344,7 +344,7 @@ public class CapacityScheduler extends throw new YarnRuntimeException("RM uses DefaultResourceCalculator which" + " used only memory as resource-type but invalid resource-types" + " specified " + ResourceUtils.getResourceTypes() + ". Use" - + " DomainantResourceCalculator instead to make effective use of" + + " DominantResourceCalculator instead to make effective use of" + " these resource-types"); } this.usePortForNodeName = this.conf.getUsePortForNodeName();