public class RMContainerAllocator extends RMContainerRequestor implements ContainerAllocator
RMCommunicator.AllocatorRunnableContainerAllocator.EventTypeService.STATE| Modifier and Type | Field and Description |
|---|---|
static float |
DEFAULT_COMPLETED_MAPS_PERCENT_FOR_REDUCE_SLOWSTART |
protected BlockingQueue<ContainerAllocatorEvent> |
eventQueue |
static String |
RAMPDOWN_DIAGNOSTIC |
lastResponseID, pendingReleaseallocatorThread, applicationACLs, applicationId, eventHandler, isSignalled, scheduler| Constructor and Description |
|---|
RMContainerAllocator(ClientService clientService,
AppContext context) |
addContainerReq, addOutstandingRequestOnResync, computeIgnoreBlacklisting, containerFailedOnHost, decContainerReq, getAvailableResources, getBlacklistedNodes, getFilteredContainerRequest, isNodeBlacklisted, makeRemoteRequest, release, setRequestLimitcreateSchedulerProxy, doUnregistration, getApplicationProgress, getContext, getJob, getLastHeartbeatTime, getMaxContainerCapability, getSchedulerResourceTypes, isApplicationMasterRegistered, register, runOnNextHeartbeat, setShouldUnregister, setSignalled, startAllocatorThread, unregisterclose, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStoppublic static final float DEFAULT_COMPLETED_MAPS_PERCENT_FOR_REDUCE_SLOWSTART
public static final String RAMPDOWN_DIAGNOSTIC
protected BlockingQueue<ContainerAllocatorEvent> eventQueue
public RMContainerAllocator(ClientService clientService, AppContext context)
protected org.apache.hadoop.mapreduce.v2.app.rm.RMContainerAllocator.AssignedRequests createAssignedRequests()
protected void serviceInit(Configuration conf) throws Exception
serviceInit in class RMContainerRequestorExceptionprotected void serviceStart()
throws Exception
serviceStart in class RMCommunicatorExceptionprotected void heartbeat()
throws Exception
heartbeat in class RMCommunicatorExceptionprotected void serviceStop()
throws Exception
serviceStop in class RMCommunicatorExceptionpublic boolean getIsReduceStarted()
public void setIsReduceStarted(boolean reduceStarted)
public void handle(ContainerAllocatorEvent event)
handle in interface org.apache.hadoop.yarn.event.EventHandler<ContainerAllocatorEvent>protected void handleEvent(ContainerAllocatorEvent event)
@InterfaceAudience.Private public void scheduleReduces(int totalMaps, int completedMaps, int scheduledMaps, int scheduledReduces, int assignedMaps, int assignedReduces, org.apache.hadoop.yarn.api.records.Resource mapResourceReqt, org.apache.hadoop.yarn.api.records.Resource reduceResourceReqt, int numPendingReduces, float maxReduceRampupLimit, float reduceSlowStart)
@InterfaceAudience.Private public void scheduleAllReduces()
@InterfaceAudience.Private public void rampUpReduces(int rampUp)
@InterfaceAudience.Private public void rampDownReduces(int rampDown)
public TaskAttemptEvent createContainerFinishedEvent(org.apache.hadoop.yarn.api.records.ContainerStatus cont, TaskAttemptId attemptID)
@InterfaceAudience.Private public org.apache.hadoop.yarn.api.records.Resource getResourceLimit()
public int getNumOfPendingReduces()
Copyright © 2018 CERN. All Rights Reserved.