public class NodeManager extends org.apache.hadoop.service.CompositeService implements org.apache.hadoop.yarn.event.EventHandler<NodeManagerEvent>, NodeManagerMXBean
| Modifier and Type | Class and Description |
|---|---|
static class |
NodeManager.DefaultContainerStateListener
Default Container State transition listener.
|
static class |
NodeManager.NMContext |
static class |
NodeManager.NodeManagerStatus
Node manager return status codes.
|
| 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 ContainerExecutor |
createContainerExecutor(org.apache.hadoop.conf.Configuration conf) |
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 NMCollectorService |
createNMCollectorService(Context ctxt) |
protected NodeManager.NMContext |
createNMContext(NMContainerTokenSecretManager containerTokenSecretManager,
NMTokenSecretManagerInNM nmTokenSecretManager,
NMStateStoreService stateStore,
boolean isDistSchedulerEnabled,
org.apache.hadoop.conf.Configuration conf) |
protected org.apache.hadoop.yarn.event.AsyncDispatcher |
createNMDispatcher()
Unit test friendly.
|
protected NodeAttributesProvider |
createNodeAttributesProvider(org.apache.hadoop.conf.Configuration conf) |
protected NodeLabelsProvider |
createNodeLabelsProvider(org.apache.hadoop.conf.Configuration conf) |
protected NodeResourceMonitor |
createNodeResourceMonitor() |
protected NodeStatusUpdater |
createNodeStatusUpdater(Context context,
org.apache.hadoop.yarn.event.Dispatcher dispatcher,
NodeHealthCheckerService healthChecker) |
protected ResourcePluginManager |
createResourcePluginManager() |
protected WebServer |
createWebServer(Context nmContext,
ResourceView resourceView,
org.apache.hadoop.yarn.server.security.ApplicationACLsManager aclsManager,
LocalDirsHandlerService dirsHandler) |
void |
disableWebServer() |
protected void |
doSecureLogin() |
org.apache.hadoop.yarn.event.AsyncDispatcher |
getDispatcher() |
String |
getName() |
Context |
getNMContext() |
static long |
getNMStartupTime() |
NodeHealthCheckerService |
getNodeHealthChecker() |
NodeStatusUpdater |
getNodeStatusUpdater() |
void |
handle(NodeManagerEvent event) |
boolean |
isSecurityEnabled()
Gets if security is enabled.
|
static void |
main(String[] args) |
protected void |
reregisterCollectors()
Reregisters all collectors known by this node to the RM.
|
protected void |
resyncWithRM() |
protected void |
serviceInit(org.apache.hadoop.conf.Configuration conf) |
protected void |
serviceStop() |
protected void |
shutDown(int exitCode) |
addIfService, addService, getServices, removeService, serviceStartclose, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStoppublic static final int SHUTDOWN_HOOK_PRIORITY
protected final NodeManagerMetrics metrics
public static long getNMStartupTime()
protected NodeStatusUpdater createNodeStatusUpdater(Context context, org.apache.hadoop.yarn.event.Dispatcher dispatcher, NodeHealthCheckerService healthChecker)
protected NodeAttributesProvider createNodeAttributesProvider(org.apache.hadoop.conf.Configuration conf) throws IOException
IOExceptionprotected NodeLabelsProvider createNodeLabelsProvider(org.apache.hadoop.conf.Configuration conf) throws IOException
IOExceptionprotected NodeResourceMonitor createNodeResourceMonitor()
protected ContainerManagerImpl createContainerManager(Context context, ContainerExecutor exec, DeletionService del, NodeStatusUpdater nodeStatusUpdater, org.apache.hadoop.yarn.server.security.ApplicationACLsManager aclsManager, LocalDirsHandlerService dirsHandler)
protected NMCollectorService createNMCollectorService(Context ctxt)
protected WebServer createWebServer(Context nmContext, ResourceView resourceView, org.apache.hadoop.yarn.server.security.ApplicationACLsManager aclsManager, LocalDirsHandlerService dirsHandler)
protected DeletionService createDeletionService(ContainerExecutor exec)
protected NodeManager.NMContext createNMContext(NMContainerTokenSecretManager containerTokenSecretManager, NMTokenSecretManagerInNM nmTokenSecretManager, NMStateStoreService stateStore, boolean isDistSchedulerEnabled, org.apache.hadoop.conf.Configuration conf)
protected void doSecureLogin()
throws IOException
IOException@VisibleForTesting protected ResourcePluginManager createResourcePluginManager()
@VisibleForTesting protected ContainerExecutor createContainerExecutor(org.apache.hadoop.conf.Configuration conf)
protected void serviceInit(org.apache.hadoop.conf.Configuration conf)
throws Exception
serviceInit in class org.apache.hadoop.service.CompositeServiceExceptionprotected void serviceStop()
throws Exception
serviceStop in class org.apache.hadoop.service.CompositeServiceExceptionpublic String getName()
getName in interface org.apache.hadoop.service.ServicegetName in class org.apache.hadoop.service.AbstractServiceprotected void shutDown(int exitCode)
protected void resyncWithRM()
protected void reregisterCollectors()
public NodeHealthCheckerService getNodeHealthChecker()
public void handle(NodeManagerEvent event)
handle in interface org.apache.hadoop.yarn.event.EventHandler<NodeManagerEvent>public boolean isSecurityEnabled()
NodeManagerMXBeanisSecurityEnabled in interface NodeManagerMXBeanprotected org.apache.hadoop.yarn.event.AsyncDispatcher createNMDispatcher()
@VisibleForTesting public Context getNMContext()
public static void main(String[] args) throws IOException
IOException@VisibleForTesting @InterfaceAudience.Private public NodeStatusUpdater getNodeStatusUpdater()
@VisibleForTesting @InterfaceAudience.Private public org.apache.hadoop.yarn.event.AsyncDispatcher getDispatcher()
@VisibleForTesting public void disableWebServer()
Copyright © 2008–2024 Apache Software Foundation. All rights reserved.