public class NodeStatusUpdaterImpl extends org.apache.hadoop.service.AbstractService implements NodeStatusUpdater
| Modifier and Type | Field and Description |
|---|---|
static String |
YARN_NODEMANAGER_DURATION_TO_TRACK_STOPPED_CONTAINERS |
| Constructor and Description |
|---|
NodeStatusUpdaterImpl(Context context,
org.apache.hadoop.yarn.event.Dispatcher dispatcher,
NodeHealthCheckerService healthChecker,
NodeManagerMetrics metrics) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearFinishedContainersFromCache() |
protected List<org.apache.hadoop.yarn.api.records.ContainerStatus> |
getContainerStatuses() |
protected org.apache.hadoop.yarn.server.api.ResourceTracker |
getRMClient() |
long |
getRMIdentifier() |
boolean |
isContainerRecentlyStopped(org.apache.hadoop.yarn.api.records.ContainerId containerId) |
protected boolean |
isTokenKeepAliveEnabled(org.apache.hadoop.conf.Configuration conf) |
protected void |
rebootNodeStatusUpdaterAndRegisterWithRM() |
protected void |
registerWithRM() |
void |
removeVeryOldStoppedContainersFromCache() |
void |
sendOutofBandHeartBeat() |
protected void |
serviceInit(org.apache.hadoop.conf.Configuration conf) |
protected void |
serviceStart() |
protected void |
serviceStop() |
protected void |
startStatusUpdater() |
protected void |
stopRMProxy() |
void |
updateStoppedContainersInCache(org.apache.hadoop.yarn.api.records.ContainerId containerId) |
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStoppublic static final String YARN_NODEMANAGER_DURATION_TO_TRACK_STOPPED_CONTAINERS
public NodeStatusUpdaterImpl(Context context, org.apache.hadoop.yarn.event.Dispatcher dispatcher, NodeHealthCheckerService healthChecker, NodeManagerMetrics metrics)
protected void serviceInit(org.apache.hadoop.conf.Configuration conf)
throws Exception
serviceInit in class org.apache.hadoop.service.AbstractServiceExceptionprotected void serviceStart()
throws Exception
serviceStart in class org.apache.hadoop.service.AbstractServiceExceptionprotected void serviceStop()
throws Exception
serviceStop in class org.apache.hadoop.service.AbstractServiceExceptionprotected void rebootNodeStatusUpdaterAndRegisterWithRM()
protected void stopRMProxy()
@InterfaceAudience.Private protected boolean isTokenKeepAliveEnabled(org.apache.hadoop.conf.Configuration conf)
protected org.apache.hadoop.yarn.server.api.ResourceTracker getRMClient()
throws IOException
IOExceptionprotected void registerWithRM()
throws org.apache.hadoop.yarn.exceptions.YarnException,
IOException
org.apache.hadoop.yarn.exceptions.YarnExceptionIOExceptionprotected List<org.apache.hadoop.yarn.api.records.ContainerStatus> getContainerStatuses()
public void sendOutofBandHeartBeat()
sendOutofBandHeartBeat in interface NodeStatusUpdaterpublic boolean isContainerRecentlyStopped(org.apache.hadoop.yarn.api.records.ContainerId containerId)
isContainerRecentlyStopped in interface NodeStatusUpdater@InterfaceAudience.Private public void updateStoppedContainersInCache(org.apache.hadoop.yarn.api.records.ContainerId containerId)
public void clearFinishedContainersFromCache()
clearFinishedContainersFromCache in interface NodeStatusUpdater@InterfaceAudience.Private public void removeVeryOldStoppedContainersFromCache()
public long getRMIdentifier()
getRMIdentifier in interface NodeStatusUpdaterprotected void startStatusUpdater()
Copyright © 2014 Apache Software Foundation. All Rights Reserved.