java.io.Closeable, java.lang.AutoCloseable, ContainerAllocator, RMHeartbeatHandler, org.apache.hadoop.service.Service, org.apache.hadoop.yarn.event.EventHandler<ContainerAllocatorEvent>public class RMContainerAllocator extends RMContainerRequestor implements ContainerAllocator
RMCommunicator.AllocatorRunnableContainerAllocator.EventType| Modifier and Type | Field | Description |
|---|---|---|
static float |
DEFAULT_COMPLETED_MAPS_PERCENT_FOR_REDUCE_SLOWSTART |
|
protected java.util.concurrent.BlockingQueue<ContainerAllocatorEvent> |
eventQueue |
|
static java.lang.String |
RAMPDOWN_DIAGNOSTIC |
lastResponseID, pendingReleaseallocatorThread, applicationACLs, applicationId, eventHandler, isSignalled, scheduler| Constructor | Description |
|---|---|
RMContainerAllocator(ClientService clientService,
AppContext context,
AMPreemptionPolicy preemptionPolicy) |
| Modifier and Type | Method | Description |
|---|---|---|
protected org.apache.hadoop.mapreduce.v2.app.rm.RMContainerAllocator.AssignedRequests |
createAssignedRequests() |
|
TaskAttemptEvent |
createContainerFinishedEvent(org.apache.hadoop.yarn.api.records.ContainerStatus cont,
org.apache.hadoop.mapreduce.v2.api.records.TaskAttemptId attemptId) |
|
boolean |
getIsReduceStarted() |
|
org.apache.hadoop.yarn.api.records.Resource |
getResourceLimit() |
|
void |
handle(ContainerAllocatorEvent event) |
|
protected void |
handleEvent(ContainerAllocatorEvent event) |
|
protected void |
heartbeat() |
|
void |
rampDownReduces(int rampDown) |
|
void |
rampUpReduces(int rampUp) |
|
void |
scheduleAllReduces() |
|
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) |
|
protected void |
serviceInit(org.apache.hadoop.conf.Configuration conf) |
|
protected void |
serviceStart() |
|
protected void |
serviceStop() |
|
void |
setIsReduceStarted(boolean reduceStarted) |
addContainerReq, addOpportunisticResourceRequest, 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
@VisibleForTesting public static final java.lang.String RAMPDOWN_DIAGNOSTIC
@VisibleForTesting protected java.util.concurrent.BlockingQueue<ContainerAllocatorEvent> eventQueue
public RMContainerAllocator(ClientService clientService, AppContext context, AMPreemptionPolicy preemptionPolicy)
protected org.apache.hadoop.mapreduce.v2.app.rm.RMContainerAllocator.AssignedRequests createAssignedRequests()
protected void serviceInit(org.apache.hadoop.conf.Configuration conf)
throws java.lang.Exception
serviceInit in class RMContainerRequestorjava.lang.Exceptionprotected void serviceStart()
throws java.lang.Exception
serviceStart in class RMCommunicatorjava.lang.Exceptionprotected void heartbeat()
throws java.lang.Exception
heartbeat in class RMCommunicatorjava.lang.Exceptionprotected void serviceStop()
throws java.lang.Exception
serviceStop in class RMCommunicatorjava.lang.Exceptionpublic 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)
@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)
@Private public void scheduleAllReduces()
@Private public void rampUpReduces(int rampUp)
@Private public void rampDownReduces(int rampDown)
@VisibleForTesting public TaskAttemptEvent createContainerFinishedEvent(org.apache.hadoop.yarn.api.records.ContainerStatus cont, org.apache.hadoop.mapreduce.v2.api.records.TaskAttemptId attemptId)
@Private public org.apache.hadoop.yarn.api.records.Resource getResourceLimit()
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.