Setting Queue Label Policies for Capacity Scheduler
To set a queue label policy for a
capacity queue, add the following property to the capacity-scheduler.xml
file:
yarn.scheduler.capacity.root.<queue-name>.label-policy
For example:
<property>
<name>yarn.scheduler.capacity.root.alpha.label-policy</name>
<value>PREFER_APP</value>
</property>