public class UserGroupMappingPlacementRule extends PlacementRule
| Modifier and Type | Field and Description |
|---|---|
static String |
CURRENT_USER_MAPPING |
static String |
PRIMARY_GROUP_MAPPING |
| Constructor and Description |
|---|
UserGroupMappingPlacementRule() |
UserGroupMappingPlacementRule(boolean overrideWithQueueMappings,
List<QueueMapping> newMappings,
org.apache.hadoop.security.Groups groups) |
| Modifier and Type | Method and Description |
|---|---|
ApplicationPlacementContext |
getPlacementForApp(org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext asc,
String user)
Get queue for a given application
|
List<QueueMapping> |
getQueueMappings() |
boolean |
initialize(ResourceScheduler scheduler) |
getNamepublic static final String CURRENT_USER_MAPPING
public static final String PRIMARY_GROUP_MAPPING
public UserGroupMappingPlacementRule()
public UserGroupMappingPlacementRule(boolean overrideWithQueueMappings,
List<QueueMapping> newMappings,
org.apache.hadoop.security.Groups groups)
public ApplicationPlacementContext getPlacementForApp(org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext asc, String user) throws org.apache.hadoop.yarn.exceptions.YarnException
PlacementRulegetPlacementForApp in class PlacementRuleasc - application submission contextuser - userNamenon-null value means it is determined
null value means it is undetermined, so next PlacementRule
in the PlacementManager will take care
org.apache.hadoop.yarn.exceptions.YarnException - if any error happenspublic boolean initialize(ResourceScheduler scheduler) throws IOException
initialize in class PlacementRuleIOExceptionpublic List<QueueMapping> getQueueMappings()
Copyright © 2008–2022 Apache Software Foundation. All rights reserved.