YARN-10682. The scheduler monitor policies conf should trim values separated by comma. Contributed by Qi Zhu.

This commit is contained in:
Peter Bacsko 2021-03-16 15:23:27 +01:00
parent e9c98548e9
commit b80588b688
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ public class SchedulingMonitorManager {
} }
// When monitor is enabled, loading policies // When monitor is enabled, loading policies
String[] configuredPolicies = conf.getStrings( String[] configuredPolicies = conf.getTrimmedStrings(
YarnConfiguration.RM_SCHEDULER_MONITOR_POLICIES); YarnConfiguration.RM_SCHEDULER_MONITOR_POLICIES);
if (configuredPolicies == null || configuredPolicies.length == 0) { if (configuredPolicies == null || configuredPolicies.length == 0) {
return; return;