Configure queue ordering policies

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.
  1. In Cloudera Manager, select the YARN service.
  2. Click the Configuration tab.
  3. Search for scheduler.
  4. 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