@Private @Unstable public class UserPlacementRule extends FSPlacementRule
createQueue| Constructor | Description |
|---|---|
UserPlacementRule() |
| Modifier and Type | Method | Description |
|---|---|---|
ApplicationPlacementContext |
getPlacementForApp(org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext asc,
java.lang.String user) |
Return the scheduler queue name the application should be placed in
wrapped in an
ApplicationPlacementContext object. |
getCreateFlag, getParentRule, initialize, setConfig, setConfig, setConfig, setParentRulegetName, getPlacementForApppublic ApplicationPlacementContext getPlacementForApp(org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext asc, java.lang.String user) throws org.apache.hadoop.yarn.exceptions.YarnException
PlacementRuleApplicationPlacementContext object.
A non null return value places the application in a queue,
a null value means the queue is not yet determined. The
next PlacementRule in the list maintained in the
PlacementManager will be executed.getPlacementForApp in class PlacementRuleasc - The context of the application created on submissionuser - The name of the user submitting the applicationApplicationPlacementContext or
null if no queue was resolvedorg.apache.hadoop.yarn.exceptions.YarnException - for any error while executing the ruleCopyright © 2008–2025 Apache Software Foundation. All rights reserved.