Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
Reviewed
Description
Currently, capacity scheduler doesn't trim sub queue name when parsing queue names, for example, the configuration
<configuration> <property> <name>...root.queues</name> <value> a, b , c</value> </property> <property> <name>...root.b.capacity</name> <value>100</value> </property> ....... </property>
Will fail with error:
java.lang.IllegalArgumentException: Illegal capacity of -1.0 for queue root. a
at org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.CapacitySchedulerConfiguration.getCapacity(CapacitySchedulerConfiguration.java:332)
at org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.LeafQueue.getCapacityFromConf(LeafQueue.java:196)
....
It will try to find a queues with name " a", " b ", and " c", which is apparently wrong, we should do trimming on these sub queue names.