org.apache.hadoop.yarn.server.nodemanager
Class NodeManager
java.lang.Object
org.apache.hadoop.yarn.service.AbstractService
org.apache.hadoop.yarn.service.CompositeService
org.apache.hadoop.yarn.server.nodemanager.NodeManager
- All Implemented Interfaces:
- org.apache.hadoop.yarn.event.EventHandler<NodeManagerEvent>, org.apache.hadoop.yarn.service.Service
public class NodeManager
- extends org.apache.hadoop.yarn.service.CompositeService
- implements org.apache.hadoop.yarn.event.EventHandler<NodeManagerEvent>
| Nested classes/interfaces inherited from class org.apache.hadoop.yarn.service.CompositeService |
org.apache.hadoop.yarn.service.CompositeService.CompositeServiceShutdownHook |
| Nested classes/interfaces inherited from interface org.apache.hadoop.yarn.service.Service |
org.apache.hadoop.yarn.service.Service.STATE |
|
Method Summary |
protected void |
cleanupContainers()
|
protected ContainerManagerImpl |
createContainerManager(Context context,
ContainerExecutor exec,
DeletionService del,
NodeStatusUpdater nodeStatusUpdater,
org.apache.hadoop.yarn.server.security.ApplicationACLsManager aclsManager,
LocalDirsHandlerService dirsHandler)
|
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()
|
NodeHealthCheckerService |
getNodeHealthChecker()
|
void |
handle(NodeManagerEvent event)
|
void |
init(org.apache.hadoop.conf.Configuration conf)
|
static void |
main(String[] args)
|
void |
start()
|
void |
stop()
|
| Methods inherited from class org.apache.hadoop.yarn.service.CompositeService |
addService, getServices, removeService |
| Methods inherited from class org.apache.hadoop.yarn.service.AbstractService |
getConfig, getName, getServiceState, getStartTime, register, unregister |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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)
doSecureLogin
protected void doSecureLogin()
throws IOException
- Throws:
IOException
init
public void init(org.apache.hadoop.conf.Configuration conf)
- Specified by:
init in interface org.apache.hadoop.yarn.service.Service- Overrides:
init in class org.apache.hadoop.yarn.service.CompositeService
start
public void start()
- Specified by:
start in interface org.apache.hadoop.yarn.service.Service- Overrides:
start in class org.apache.hadoop.yarn.service.CompositeService
stop
public void stop()
- Specified by:
stop in interface org.apache.hadoop.yarn.service.Service- Overrides:
stop in class org.apache.hadoop.yarn.service.CompositeService
cleanupContainers
protected void cleanupContainers()
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>
main
public static void main(String[] args)
Copyright © 2013 Apache Software Foundation. All Rights Reserved.