Create pool placement rules

Placement rules determine the pools to which applications and queries are assigned. You can create your own placement rule in addition to the default rules.

  1. In Cloudera Manager, click Clusters.
  2. Select the Cluster Name.
  3. Click Dynamic Resource Pool Configuration.
    If the cluster has a YARN service, the YARN / Resource Pool tab displays. If the cluster has an Impala service enabled, the Impala Admission Control / Resource Pool tab displays.
  4. Click the YARN tab.
  5. Click the Placement Rules tab.
  6. Click Create Placement Rule.
  7. Select the rule that specifies the name of pool and its position in the pool hierarchy.
    • specified at run time - Use root.[pool name], where pool name is the name of the pool specified at run time.
    • root.users.[username] - Use the parent pool root.users in a pool named by the user submitting the application. The root.users parent pool and this rule are created by default. However, on upgrading from Cloudera Manager 5.7, neither the pool or placement rule is added.
    • root.default - Use the root.default pool.
    • root.[pool name] - Use root.pool name, where pool name is the name you specify in the Pool Name field that displays after you select the rule.
    • root.[primary group] - Use the pool that matches the primary group of the user submitting the application.
    • root.[secondary group] - Use the pool that matches one of the secondary groups of the user that submitted the application.
    • root.[username] - Use the pool that matches the name of the user that submitted the application.
    • root.[primary group].[username] - Use the parent pool that matches the primary group of the user that submitted the application and then a subpool that matches the username.
    • root.[secondary group].[username] - Use the parent pool that matches one of the secondary groups of the user that submitted the application and then a subpool that matches the username.

    For more information about these rules, see the description of the queuePlacementPolicy element in Allocation File Format.

  8. Check the Create pool if it does not exist checkbox to indicate that the pool should be created if it does not exist when the application runs.
  9. Click Create.
    The rule is added to the top of the placement rule list and becomes the first rule evaluated.
  10. Click Refresh Dynamic Resource Pools.