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) |
getName
public 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 PlacementRule
IOException
public ApplicationPlacementContext getPlacementForApp(org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext asc, String user) throws org.apache.hadoop.yarn.exceptions.YarnException
PlacementRule
getPlacementForApp
in class PlacementRule
asc
- 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–2021 Apache Software Foundation. All rights reserved.