hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wangda Tan (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (YARN-2869) CapacityScheduler should trim sub queue names when parse configuration
Date Fri, 21 Nov 2014 18:42:34 GMT

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

[~vinodkv], Thanks for review. The "mvn eclipse:eclipse" is not related. And added a test
covers nested queue parsing needs trimming.

> 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
>
>
> 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)

Mime
View raw message