public class RMContainerAllocator extends RMContainerRequestor implements ContainerAllocator
ContainerAllocator.EventType| Modifier and Type | Field and Description |
|---|---|
static float |
DEFAULT_COMPLETED_MAPS_PERCENT_FOR_REDUCE_SLOWSTART |
allocatorThread, applicationACLs, applicationAttemptId, applicationId, eventHandler, isSignalled, scheduler| Constructor and Description |
|---|
RMContainerAllocator(ClientService clientService,
AppContext context) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getIsReduceStarted() |
int |
getMemLimit() |
void |
handle(ContainerAllocatorEvent event) |
protected void |
handleEvent(ContainerAllocatorEvent event) |
protected void |
heartbeat() |
void |
init(org.apache.hadoop.conf.Configuration conf) |
void |
rampDownReduces(int rampDown) |
void |
rampUpReduces(int rampUp) |
void |
scheduleAllReduces() |
void |
scheduleReduces(int totalMaps,
int completedMaps,
int scheduledMaps,
int scheduledReduces,
int assignedMaps,
int assignedReduces,
int mapResourceReqt,
int reduceResourceReqt,
int numPendingReduces,
float maxReduceRampupLimit,
float reduceSlowStart) |
void |
setIsReduceStarted(boolean reduceStarted) |
void |
start() |
void |
stop() |
addContainerReq, computeIgnoreBlacklisting, containerFailedOnHost, decContainerReq, getAvailableResources, getFilteredContainerRequest, isNodeBlacklisted, makeRemoteRequest, releasecreateSchedulerProxy, getApplicationProgress, getContext, getJob, getLastHeartbeatTime, getMaxContainerCapability, getMinContainerCapability, register, runOnNextHeartbeat, setShouldUnregister, setSignalled, startAllocatorThread, unregisterpublic static final float DEFAULT_COMPLETED_MAPS_PERCENT_FOR_REDUCE_SLOWSTART
public RMContainerAllocator(ClientService clientService, AppContext context)
public void init(org.apache.hadoop.conf.Configuration conf)
init in interface org.apache.hadoop.yarn.service.Serviceinit in class RMContainerRequestorpublic void start()
start in interface org.apache.hadoop.yarn.service.Servicestart in class RMCommunicatorprotected void heartbeat()
throws Exception
heartbeat in class RMCommunicatorExceptionpublic void stop()
stop in interface org.apache.hadoop.yarn.service.Servicestop in class RMCommunicatorpublic 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,
int mapResourceReqt,
int 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)
@InterfaceAudience.Private public int getMemLimit()
Copyright © 2014 Apache Software Foundation. All Rights Reserved.