YARN-10682. The scheduler monitor policies conf should trim values separated by comma. Contributed by Qi Zhu.
This commit is contained in:
parent
e9c98548e9
commit
b80588b688
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue