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 @@ 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;
|
||||
|
Loading…
Reference in New Issue
Block a user