Managing Data Operating System
Also available as:
PDF
loading table of contents...

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.

Override default queue mapping is disabled (set to false) by default.
<property>
    <name>yarn.scheduler.capacity.queue-mappings-override.enable</name>
    <value>false</value>
    <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.
    </description>
</property>

To enable queue mapping override, set the property to true in the capacity-scheduler.xml file.

Consider the following example in the case where queue mapping override has been enabled:

<property>
    <name>yarn.scheduler.capacity.queue-mappings</name>
    <value>u:maria:engineering,g:webadmins:weblog</value>
</property> 

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.