You can create placement rules using the YARN Queue Manager UI in Cloudera
Manager.
Placement rule that uses static queue
Create the target leaf queue before creating the placement rule that uses it. When
creating the placement rule the UI will display all the existing leaf queues.
Placement rule that uses dynamically created queues
Enable the dynamic child creation feature for the target parent queue before creating
the placement rule that uses it. When creating the rule the UI will display all the
existing queues as target parent queue options but if the dynamic child creation feature
is not enabled for the selected queue, a warning message will be displayed and you
cannot create the placement rule. For more information, see Manage dynamic
queues.
In Cloudera Manager, select the YARN Queue Manager UI.
A graphical queue hierarchy is displayed in the Overview
tab.
Navigate to Placement Rules.
Click +Add.
The Add Placement Rules dialog box is displayed with the
default settings or with settings that are the exact replica of the last placement rule
that you have created.
Use the The rule should match application by property to set the
application parameter that should match with the rule.
Use the This rule should match field to set the value of the
matching application parameter that should match with the rule.
Set what the rule should do when an application is matched.
When an application is matched, do the following: Sets the
placement rule policy.
Set the parent of the queue to which the job should be submitted.
The parent of the queue in which the application is placed should
be: Select an available parent queue from the dropdown list.
If you want the target queue to be created, if it does not exist at the time of the
job submission, select the Create the target queue if it does not
exist? checkbox. To enable this feature you have to set a parent queue in
Step 7.
Use the If the target queue does not exist and cannot be created, do the
following property to set the fallback action.
Check you placement rule settings.
Click OK.
Provide a description of the change and then click OK.
The rule is added to the bottom of the placement rule list and
becomes the last rule to be evaluated.