[
https://issues.apache.org/jira/browse/YARN-2869?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Wangda Tan updated YARN-2869:
-----------------------------
Attachment: YARN-2869-1.patch
Attached a fix for this issue.
> 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
> Attachments: YARN-2869-1.patch
>
>
> 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)