Wangda Tan created YARN-2869:
--------------------------------
Summary: CapacityScheduler should trim sub queue names when parse
configuration
Key: YARN-2869
URL: https://issues.apache.org/jira/browse/YARN-2869
Project: Hadoop YARN
Issue Type: Bug
Components: capacityscheduler, resourcemanager
Reporter: Wangda Tan
Assignee: Wangda Tan
Advertising
Currently, capacity scheduler doesn't trim sub queue name when parsing queue
names, for example, the configuration
{code}
<configuration>
<property>
<name>...root.queues</name>
<value> a, b , c</value>
</property>
<property>
<name>...root.b.capacity</name>
<value>100</value>
</property>
.......
</property>
{code}
Will fail with error:
{code}
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)
....
{code}
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.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)