Enable override of default queue mappings
You can override default queue mappings and submit applications that are specified for queues, other than those defined in the default queue mappings.
To override default queue mapping to disabled (set to false
) by
default.
- In Cloudera Manager, select the YARN service.
- Click the Configuration tab.
- Search for scheduler.
- In Capacity Scheduler Configuration Advanced Configuration Snippet (Safety
Valve) field, add the
following:
Name: yarn.scheduler.capacity.queue-mappings-override.enable Value: false Description: If a queue mapping is present and override is set to true, it will override the queue value specified by the user. This can be used by administrators to place jobs in queues that are different than the one specified by the user. The default is false - user can specify to a non-default queue.
To enable queue mapping override, set the property to true in the capacity-scheduler.xml file. In the following example, queue mapping override has been enabled.
- In Cloudera Manager, select the YARN service.
- Click the Configuration tab.
- Search for scheduler.
- In Capacity Scheduler Configuration Advanced Configuration Snippet (Safety
Valve) field, add the
following:
Name: yarn.scheduler.capacity.queue-mappings Value: u:maria:engineering,g:webadmins:weblog
If user "maria" explicitly submits an application to the "marketing" queue, the default queue assignment of "engineering" is overridden, and the application is submitted to the "marketing" queue.