From b80588b6883b44f24838d1525c9b267186586042 Mon Sep 17 00:00:00 2001 From: Peter Bacsko Date: Tue, 16 Mar 2021 15:23:27 +0100 Subject: [PATCH] YARN-10682. The scheduler monitor policies conf should trim values separated by comma. Contributed by Qi Zhu. --- .../resourcemanager/monitor/SchedulingMonitorManager.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/monitor/SchedulingMonitorManager.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/monitor/SchedulingMonitorManager.java index 5418e8b1f8..f3c10ea0b7 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/monitor/SchedulingMonitorManager.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/monitor/SchedulingMonitorManager.java @@ -61,7 +61,7 @@ private void updateSchedulingMonitors(Configuration conf, } // When monitor is enabled, loading policies - String[] configuredPolicies = conf.getStrings( + String[] configuredPolicies = conf.getTrimmedStrings( YarnConfiguration.RM_SCHEDULER_MONITOR_POLICIES); if (configuredPolicies == null || configuredPolicies.length == 0) { return;