public class AppNameMappingPlacementRule extends PlacementRule
| Modifier and Type | Field and Description |
|---|---|
static String |
CURRENT_APP_MAPPING |
| Constructor and Description |
|---|
AppNameMappingPlacementRule() |
AppNameMappingPlacementRule(boolean overrideWithQueueMappings,
List<QueueMappingEntity> newMappings) |
| Modifier and Type | Method and Description |
|---|---|
ApplicationPlacementContext |
getPlacementForApp(org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext asc,
String user)
Get queue for a given application
|
boolean |
initialize(ResourceScheduler scheduler) |
getNamepublic static final String CURRENT_APP_MAPPING
public AppNameMappingPlacementRule()
public AppNameMappingPlacementRule(boolean overrideWithQueueMappings,
List<QueueMappingEntity> newMappings)
public boolean initialize(ResourceScheduler scheduler) throws IOException
initialize in class PlacementRuleIOExceptionpublic 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 happensCopyright © 2008–2022 Apache Software Foundation. All rights reserved.