java.lang.Object
org.apache.hadoop.yarn.server.resourcemanager.scheduler.SchedulerNode
org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.FSSchedulerNode

@Private @Unstable public class FSSchedulerNode extends SchedulerNode
Fair Scheduler specific node features.
  • Constructor Details

    • FSSchedulerNode

      public FSSchedulerNode(RMNode node, boolean usePortForNodeName)
  • Method Details

    • reserveResource

      public void reserveResource(SchedulerApplicationAttempt application, org.apache.hadoop.yarn.server.scheduler.SchedulerRequestKey schedulerKey, RMContainer container)
      Description copied from class: SchedulerNode
      Reserve container for the attempt on this node.
      Specified by:
      reserveResource in class SchedulerNode
      Parameters:
      application - Application attempt asking for the reservation.
      schedulerKey - Priority of the reservation.
      container - Container reserving resources for.
    • unreserveResource

      public void unreserveResource(SchedulerApplicationAttempt application)
      Description copied from class: SchedulerNode
      Unreserve resources on this node.
      Specified by:
      unreserveResource in class SchedulerNode
      Parameters:
      application - Application attempt that had done the reservation.
    • allocateContainer

      protected void allocateContainer(RMContainer rmContainer, boolean launchedOnNode)
      The Scheduler has allocated containers on this node to the given application.
      Overrides:
      allocateContainer in class SchedulerNode
      Parameters:
      rmContainer - Allocated container
      launchedOnNode - True if the container has been launched
    • releaseContainer

      public void releaseContainer(org.apache.hadoop.yarn.api.records.ContainerId containerId, boolean releasedByNode)
      Release an allocated container on this node. It also releases from the reservation list to trigger preemption allocations.
      Overrides:
      releaseContainer in class SchedulerNode
      Parameters:
      containerId - ID of container to be released.
      releasedByNode - whether the release originates from a node update.