org.apache.hadoop.yarn.server.nodemanager
Class NodeManager
java.lang.Object
org.apache.hadoop.service.AbstractService
org.apache.hadoop.service.CompositeService
org.apache.hadoop.yarn.server.nodemanager.NodeManager
- All Implemented Interfaces:
- Closeable, org.apache.hadoop.service.Service, org.apache.hadoop.yarn.event.EventHandler<NodeManagerEvent>
public class NodeManager
- extends org.apache.hadoop.service.CompositeService
- implements org.apache.hadoop.yarn.event.EventHandler<NodeManagerEvent>
| Nested classes/interfaces inherited from class org.apache.hadoop.service.CompositeService |
org.apache.hadoop.service.CompositeService.CompositeServiceShutdownHook |
| Nested classes/interfaces inherited from interface org.apache.hadoop.service.Service |
org.apache.hadoop.service.Service.STATE |
| Fields inherited from class org.apache.hadoop.service.CompositeService |
STOP_ONLY_STARTED_SERVICES |
|
Method Summary |
protected ContainerManagerImpl |
createContainerManager(Context context,
ContainerExecutor exec,
DeletionService del,
NodeStatusUpdater nodeStatusUpdater,
org.apache.hadoop.yarn.server.security.ApplicationACLsManager aclsManager,
LocalDirsHandlerService dirsHandler)
|
protected DeletionService |
createDeletionService(ContainerExecutor exec)
|
protected NodeManager.NMContext |
createNMContext(NMContainerTokenSecretManager containerTokenSecretManager,
NMTokenSecretManagerInNM nmTokenSecretManager)
|
protected NodeResourceMonitor |
createNodeResourceMonitor()
|
protected NodeStatusUpdater |
createNodeStatusUpdater(Context context,
org.apache.hadoop.yarn.event.Dispatcher dispatcher,
NodeHealthCheckerService healthChecker)
|
protected WebServer |
createWebServer(Context nmContext,
ResourceView resourceView,
org.apache.hadoop.yarn.server.security.ApplicationACLsManager aclsManager,
LocalDirsHandlerService dirsHandler)
|
protected void |
doSecureLogin()
|
String |
getName()
|
Context |
getNMContext()
|
NodeHealthCheckerService |
getNodeHealthChecker()
|
NodeStatusUpdater |
getNodeStatusUpdater()
|
void |
handle(NodeManagerEvent event)
|
static void |
main(String[] args)
|
protected void |
resyncWithRM()
|
protected void |
serviceInit(org.apache.hadoop.conf.Configuration conf)
|
protected void |
serviceStart()
|
protected void |
serviceStop()
|
protected void |
shutDown()
|
| Methods inherited from class org.apache.hadoop.service.CompositeService |
addIfService, addService, getServices, removeService |
| Methods inherited from class org.apache.hadoop.service.AbstractService |
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStop |
SHUTDOWN_HOOK_PRIORITY
public static final int SHUTDOWN_HOOK_PRIORITY
- Priority of the NodeManager shutdown hook.
- See Also:
- Constant Field Values
metrics
protected final NodeManagerMetrics metrics
NodeManager
public NodeManager()
createNodeStatusUpdater
protected NodeStatusUpdater createNodeStatusUpdater(Context context,
org.apache.hadoop.yarn.event.Dispatcher dispatcher,
NodeHealthCheckerService healthChecker)
createNodeResourceMonitor
protected NodeResourceMonitor createNodeResourceMonitor()
createContainerManager
protected ContainerManagerImpl createContainerManager(Context context,
ContainerExecutor exec,
DeletionService del,
NodeStatusUpdater nodeStatusUpdater,
org.apache.hadoop.yarn.server.security.ApplicationACLsManager aclsManager,
LocalDirsHandlerService dirsHandler)
createWebServer
protected WebServer createWebServer(Context nmContext,
ResourceView resourceView,
org.apache.hadoop.yarn.server.security.ApplicationACLsManager aclsManager,
LocalDirsHandlerService dirsHandler)
createDeletionService
protected DeletionService createDeletionService(ContainerExecutor exec)
createNMContext
protected NodeManager.NMContext createNMContext(NMContainerTokenSecretManager containerTokenSecretManager,
NMTokenSecretManagerInNM nmTokenSecretManager)
doSecureLogin
protected void doSecureLogin()
throws IOException
- Throws:
IOException
serviceInit
protected void serviceInit(org.apache.hadoop.conf.Configuration conf)
throws Exception
- Overrides:
serviceInit in class org.apache.hadoop.service.CompositeService
- Throws:
Exception
serviceStart
protected void serviceStart()
throws Exception
- Overrides:
serviceStart in class org.apache.hadoop.service.CompositeService
- Throws:
Exception
serviceStop
protected void serviceStop()
throws Exception
- Overrides:
serviceStop in class org.apache.hadoop.service.CompositeService
- Throws:
Exception
getName
public String getName()
- Specified by:
getName in interface org.apache.hadoop.service.Service- Overrides:
getName in class org.apache.hadoop.service.AbstractService
shutDown
protected void shutDown()
resyncWithRM
protected void resyncWithRM()
getNodeHealthChecker
public NodeHealthCheckerService getNodeHealthChecker()
- Returns:
- the node health checker
handle
public void handle(NodeManagerEvent event)
- Specified by:
handle in interface org.apache.hadoop.yarn.event.EventHandler<NodeManagerEvent>
getNMContext
public Context getNMContext()
main
public static void main(String[] args)
getNodeStatusUpdater
@InterfaceAudience.Private
public NodeStatusUpdater getNodeStatusUpdater()
Copyright © 2014 Apache Software Foundation. All Rights Reserved.