diff --git hadoop-yarn-project/hadoop-yarn/hadoop-yarn-site/src/site/apt/CapacityScheduler.apt.vm hadoop-yarn-project/hadoop-yarn/hadoop-yarn-site/src/site/apt/CapacityScheduler.apt.vm index 8528c1a..92ab85d 100644 --- hadoop-yarn-project/hadoop-yarn/hadoop-yarn-site/src/site/apt/CapacityScheduler.apt.vm +++ hadoop-yarn-project/hadoop-yarn/hadoop-yarn-site/src/site/apt/CapacityScheduler.apt.vm @@ -123,6 +123,9 @@ Hadoop MapReduce Next Generation - Capacity Scheduler where-in a application can optionally specify higher resource-requirements than the default, there-by accomodating applications with differing resource requirements. Currently, is the the resource requirement supported. + + * Queue Mapping based on User or Group - This feature allows users to map a + job to a specific queue based on the user or group. [] @@ -308,6 +311,53 @@ Hadoop MapReduce Next Generation - Capacity Scheduler The special value of <<*>> implies . The special value of implies . The default is <<*>> for the root queue if not specified. + * Queue Mapping based on User or Group + + The <<>> supports the following parameters to + configure the queue mapping based on user or group: + + +*-----------------+-----------------------------------------------------------+ +|| Property || Description +*-----------------+-----------------------------------------------------------+ +| <<>> | This configuration specifies + | the mapping of user or group to aspecific queue. + | You can map a single user or a list of users to queues. \ + | Syntax: <[u or g]:[name]:[queue_name][,next_mapping]*> \ + | * - This indicates whether the mapping is + | for a user or group. The value is for user and + | for group. \ + | * - This indicates the user name or group + | name. To specify list of users, <%user> can be used. \ + | * - This indicates the queue name for + | which the job has to be mapped. To specify queue name + | same as user list, <%user> can be used. To specify queue + | name same as primary group, <%primary_group> can be used.\ +*-----------------+-----------------------------------------------------------+ +| <<>> | This function + | is used to specify whether the user specified queues can + | be overridden. This is a Boolean value and + | can be or . The default value is . If , then the user + | specified queue can be overridden by the administrator + | to place the job in the queues that is different than + | the one specified by the user. +*-----------------+-----------------------------------------------------------+ + + Example + ++---+ + + yarn.scheduler.capacity.queue-mappings + u:user1:queue1,g:group1:queue2,u:%user:%user,u:user2:%primary_group + + Here, is mapped to , is mapped to , + maps users to queues with the same name as user, is mapped + to queue name same as respectively. The mappings will be + evaluated from left to right, and the first valid mapping will be used. + + ++---+ + * Other Properties * Resource Calculator