public class ResourceTrackerService
extends org.apache.hadoop.service.AbstractService
implements org.apache.hadoop.yarn.server.api.ResourceTracker
| Constructor and Description |
|---|
ResourceTrackerService(RMContext rmContext,
NodesListManager nodesListManager,
NMLivelinessMonitor nmLivelinessMonitor,
RMContainerTokenSecretManager containerTokenSecretManager,
NMTokenSecretManagerInRM nmTokenSecretManager) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.hadoop.ipc.Server |
getServer() |
void |
loadDynamicResourceConfiguration(org.apache.hadoop.conf.Configuration conf)
Load DynamicResourceConfiguration from dynamic-resources.xml.
|
org.apache.hadoop.yarn.server.api.protocolrecords.NodeHeartbeatResponse |
nodeHeartbeat(org.apache.hadoop.yarn.server.api.protocolrecords.NodeHeartbeatRequest request) |
org.apache.hadoop.yarn.server.api.protocolrecords.RegisterNodeManagerResponse |
registerNodeManager(org.apache.hadoop.yarn.server.api.protocolrecords.RegisterNodeManagerRequest request) |
static org.apache.hadoop.net.Node |
resolve(String hostName)
resolving the network topology.
|
protected void |
serviceInit(org.apache.hadoop.conf.Configuration conf) |
protected void |
serviceStart() |
protected void |
serviceStop() |
org.apache.hadoop.yarn.server.api.protocolrecords.UnRegisterNodeManagerResponse |
unRegisterNodeManager(org.apache.hadoop.yarn.server.api.protocolrecords.UnRegisterNodeManagerRequest request) |
void |
updateDynamicResourceConfiguration(DynamicResourceConfiguration conf)
Update DynamicResourceConfiguration with new configuration.
|
void |
updateHeartBeatConfiguration(org.apache.hadoop.conf.Configuration conf)
Update HearBeatConfiguration with new configuration.
|
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStoppublic ResourceTrackerService(RMContext rmContext, NodesListManager nodesListManager, NMLivelinessMonitor nmLivelinessMonitor, RMContainerTokenSecretManager containerTokenSecretManager, NMTokenSecretManagerInRM nmTokenSecretManager)
protected void serviceInit(org.apache.hadoop.conf.Configuration conf)
throws Exception
serviceInit in class org.apache.hadoop.service.AbstractServiceExceptionpublic void loadDynamicResourceConfiguration(org.apache.hadoop.conf.Configuration conf)
throws IOException
conf - Configuration.IOException - an I/O exception has occurred.public void updateDynamicResourceConfiguration(DynamicResourceConfiguration conf)
conf - DynamicResourceConfiguration.public void updateHeartBeatConfiguration(org.apache.hadoop.conf.Configuration conf)
conf - Yarn Configurationprotected void serviceStart()
throws Exception
serviceStart in class org.apache.hadoop.service.AbstractServiceExceptionprotected void serviceStop()
throws Exception
serviceStop in class org.apache.hadoop.service.AbstractServiceExceptionpublic org.apache.hadoop.yarn.server.api.protocolrecords.RegisterNodeManagerResponse registerNodeManager(org.apache.hadoop.yarn.server.api.protocolrecords.RegisterNodeManagerRequest request)
throws org.apache.hadoop.yarn.exceptions.YarnException,
IOException
registerNodeManager in interface org.apache.hadoop.yarn.server.api.ResourceTrackerorg.apache.hadoop.yarn.exceptions.YarnExceptionIOExceptionpublic org.apache.hadoop.yarn.server.api.protocolrecords.NodeHeartbeatResponse nodeHeartbeat(org.apache.hadoop.yarn.server.api.protocolrecords.NodeHeartbeatRequest request)
throws org.apache.hadoop.yarn.exceptions.YarnException,
IOException
nodeHeartbeat in interface org.apache.hadoop.yarn.server.api.ResourceTrackerorg.apache.hadoop.yarn.exceptions.YarnExceptionIOExceptionpublic org.apache.hadoop.yarn.server.api.protocolrecords.UnRegisterNodeManagerResponse unRegisterNodeManager(org.apache.hadoop.yarn.server.api.protocolrecords.UnRegisterNodeManagerRequest request)
throws org.apache.hadoop.yarn.exceptions.YarnException,
IOException
unRegisterNodeManager in interface org.apache.hadoop.yarn.server.api.ResourceTrackerorg.apache.hadoop.yarn.exceptions.YarnExceptionIOExceptionpublic static org.apache.hadoop.net.Node resolve(String hostName)
hostName - the hostname of this node.Node for this nodemanager.public org.apache.hadoop.ipc.Server getServer()
Copyright © 2008–2023 Apache Software Foundation. All rights reserved.