You can configure the property for queue ordering policies to fifo
or fair
in capacity-scheduler.xml
.
Ordering policies are configured in capacity-scheduler.xml
. To
specify ordering policies on a per-queue basis, set the following property to
fifo
or fair
. The default setting is
fifo
.
-
In Cloudera Manager, select the YARN service.
-
Click the Configuration tab.
-
Search for scheduler.
-
In Capacity Scheduler Configuration Advanced Configuration Snippet
(Safety Valve) add the following:
Name: yarn.scheduler.capacity.<queue-path>.ordering-policy
Value: fair
You can use the following property to enable size-based weighting of resource
allocation. When this property is set to true
, queue
resources are assigned to individual applications based on their size,
rather than providing an equal share of queue resources to all applications
regardless of size. The default setting is false
.
Name: yarn.scheduler.capacity.<queue-path>
Value: true