Class UserPlacementRule
java.lang.Object
org.apache.hadoop.yarn.server.resourcemanager.placement.PlacementRule
org.apache.hadoop.yarn.server.resourcemanager.placement.FSPlacementRule
org.apache.hadoop.yarn.server.resourcemanager.placement.UserPlacementRule
Places apps in queues by username of the submitter.
-
Field Summary
Fields inherited from class org.apache.hadoop.yarn.server.resourcemanager.placement.FSPlacementRule
createQueue -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetPlacementForApp(org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext asc, String user) Return the scheduler queue name the application should be placed in wrapped in anApplicationPlacementContextobject.Methods inherited from class org.apache.hadoop.yarn.server.resourcemanager.placement.FSPlacementRule
getCreateFlag, getParentRule, initialize, setConfig, setConfig, setConfig, setParentRuleMethods inherited from class org.apache.hadoop.yarn.server.resourcemanager.placement.PlacementRule
getName, getPlacementForApp
-
Constructor Details
-
UserPlacementRule
public UserPlacementRule()
-
-
Method Details
-
getPlacementForApp
public ApplicationPlacementContext getPlacementForApp(org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext asc, String user) throws org.apache.hadoop.yarn.exceptions.YarnException Description copied from class:PlacementRuleReturn the scheduler queue name the application should be placed in wrapped in anApplicationPlacementContextobject. A nonnullreturn value places the application in a queue, anullvalue means the queue is not yet determined. The nextPlacementRulein the list maintained in thePlacementManagerwill be executed.- Specified by:
getPlacementForAppin classPlacementRule- Parameters:
asc- The context of the application created on submissionuser- The name of the user submitting the application- Returns:
- The queue name wrapped in
ApplicationPlacementContextornullif no queue was resolved - Throws:
org.apache.hadoop.yarn.exceptions.YarnException- for any error while executing the rule
-