[ 
https://issues.apache.org/jira/browse/YARN-343?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13556681#comment-13556681
 ] 

Xuan Gong commented on YARN-343:
--------------------------------

The number we set up for the queue at CapacityScheduler.xml is configured as %. 
So here, you set -1, after read to the code, it will become -0.01. If you do 
not set any value at this property, it will use 100 as default, that means this 
queue will be fully used. And I do not think we can use negative number, it 
will check the value, and will pop up the exception if we set any negative 
number. 

                
> Capacity Scheduler maximum-capacity value -1 is invalid
> -------------------------------------------------------
>
>                 Key: YARN-343
>                 URL: https://issues.apache.org/jira/browse/YARN-343
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: capacityscheduler
>    Affects Versions: 0.23.6
>            Reporter: Thomas Graves
>
> I tried to start the resource manager using the capacity scheduler with a 
> particular queues maximum-capacity set to -1 which is supposed to disable it 
> according to the docs but I got the following exception:
> java.lang.IllegalArgumentException: Illegal value  of maximumCapacity -0.01 
> used in call to setMaxCapacity for queue foo
>     at 
> org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.CSQueueUtils.checkMaxCapacity(CSQueueUtils.java:31)
>     at 
> org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.LeafQueue.setupQueueConfigs(LeafQueue.java:220)
>     at 
> org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.LeafQueue.<init>(LeafQueue.java:191)
>     at 
> org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.CapacityScheduler.parseQueue(CapacityScheduler.java:310)
>     at 
> org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.CapacityScheduler.parseQueue(CapacityScheduler.java:325)
>     at 
> org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.CapacityScheduler.initializeQueues(CapacityScheduler.java:232)
>     at 
> org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.CapacityScheduler.reinitialize(CapacityScheduler.java:202)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to