@Private @Unstable public class UserPlacementRule extends FSPlacementRule
Places apps in queues by username of the submitter.
  • 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: PlacementRule
      Return the scheduler queue name the application should be placed in wrapped in an ApplicationPlacementContext 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.
      Specified by:
      getPlacementForApp in class PlacementRule
      Parameters:
      asc - The context of the application created on submission
      user - The name of the user submitting the application
      Returns:
      The queue name wrapped in ApplicationPlacementContext or null if no queue was resolved
      Throws:
      org.apache.hadoop.yarn.exceptions.YarnException - for any error while executing the rule