Create placement rules
Placement rules determine the queues to which applications and jobs are assigned.
You must first create the target leaf queues before creating the placement rules. For static rules, the UI will display all the existing leaf queues. Hence, you must create leaf queues before creating rules. In a dynamic placement rule, once the leaf-queue is converted to a managed parent queue, you cannot add new child queues to it or edit the child queue capacity.
-
In Cloudera Manager, select the Clusters > YARN Queue Manager UI service. A graphical queue hierarchy is displayed in the Overview tab.
-
Click the Placement Rules tab.
-
Click +Add. The Add Placement Rule dialog box is displayed.
-
Select a placement rule template from the drop-down list.
-
Add the rule to match applications with the queues using the Add Placement Rule dialog box.
The static rules use the existing queues and dynamic rules create a queue if it does not exist. The dynamic rule templates end with the phrase
or create the queue if it does not exist.
-
Click Save.
The rule is added to the bottom of the placement rule list and becomes the last rule to be evaluated.