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.

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

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