public class NodeManager extends org.apache.hadoop.yarn.service.CompositeService implements org.apache.hadoop.yarn.event.EventHandler<NodeManagerEvent>
| Modifier and Type | Class and Description |
|---|---|
static class |
NodeManager.NMContext |
| Modifier and Type | Field and Description |
|---|---|
protected NodeManagerMetrics |
metrics |
static int |
SHUTDOWN_HOOK_PRIORITY
Priority of the NodeManager shutdown hook.
|
| Constructor and Description |
|---|
NodeManager() |
| Modifier and Type | Method and Description |
|---|---|
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 DeletionService |
createDeletionService(ContainerExecutor exec) |
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() |
addService, getServices, removeServicepublic static final int SHUTDOWN_HOOK_PRIORITY
protected final NodeManagerMetrics metrics
protected NodeStatusUpdater createNodeStatusUpdater(Context context, org.apache.hadoop.yarn.event.Dispatcher dispatcher, NodeHealthCheckerService healthChecker)
protected NodeResourceMonitor createNodeResourceMonitor()
protected ContainerManagerImpl createContainerManager(Context context, ContainerExecutor exec, DeletionService del, NodeStatusUpdater nodeStatusUpdater, org.apache.hadoop.yarn.server.security.ApplicationACLsManager aclsManager, LocalDirsHandlerService dirsHandler)
protected WebServer createWebServer(Context nmContext, ResourceView resourceView, org.apache.hadoop.yarn.server.security.ApplicationACLsManager aclsManager, LocalDirsHandlerService dirsHandler)
protected DeletionService createDeletionService(ContainerExecutor exec)
protected void doSecureLogin()
throws IOException
IOExceptionpublic void init(org.apache.hadoop.conf.Configuration conf)
init in interface org.apache.hadoop.yarn.service.Serviceinit in class org.apache.hadoop.yarn.service.CompositeServicepublic void start()
start in interface org.apache.hadoop.yarn.service.Servicestart in class org.apache.hadoop.yarn.service.CompositeServicepublic void stop()
stop in interface org.apache.hadoop.yarn.service.Servicestop in class org.apache.hadoop.yarn.service.CompositeServiceprotected void cleanupContainers()
public NodeHealthCheckerService getNodeHealthChecker()
public void handle(NodeManagerEvent event)
handle in interface org.apache.hadoop.yarn.event.EventHandler<NodeManagerEvent>public static void main(String[] args)
Copyright © 2014 Apache Software Foundation. All Rights Reserved.