[ 
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-3.patch

Attached ver.3 patch to re-kick Jenkins, not sure which change causes javadocs 
WARNING

> 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, YARN-2869-2.patch, YARN-2869-3.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)

Reply via email to