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

Configure Queue Mapping to use the user name from the application tag

You can configure queue mapping to use the user name from the application tag instead of the proxy user who submitted the job. For example, the runs Hive Queries submitted from HiveServer2 in the queue mapped from end user instead of hive user.

  1. Enable the application-tag-based-placement property to enable application placement based on the user ID passed using the application tags.
    <property>
        <name>yarn.resourcemanager.application-tag-based-placement.enable</name>
        <value>false</value>
        <description>
          Set to "true" to enable application placement based on the user ID passed using 
          the application tags. When it is enabled, it checks for the userid=<userId> pattern 
          and if found, the application will be placed onto the found user's queue, if the 
          original user has the required rights on the passed user's queue.
        </description>
    </property>
  2. Add the list of whitelist users who can use application tag based placement. The applications when the submitting user is whitelisted, will be placed onto the queue defined in the yarn.scheduler.capacity.queue-mappings property defined for the user from the application tag. If there is no user defined, the submitting user will be used.
    <property>
        <name>yarn.resourcemanager.application-tag-based-placement.username.whitelist</name>
        <value></value>
        <description>
          Comma separated list of users who can use the application tag based placement, if 
          "yarn.resourcemanager.application-tag-based-placement.enable" is enabled.
        </description>
    </property>