org.apache.hadoop.yarn.server.resourcemanager
Class ResourceManager
java.lang.Object
org.apache.hadoop.yarn.service.AbstractService
org.apache.hadoop.yarn.service.CompositeService
org.apache.hadoop.yarn.server.resourcemanager.ResourceManager
- All Implemented Interfaces:
- Recoverable, org.apache.hadoop.yarn.service.Service
public class ResourceManager
- extends org.apache.hadoop.yarn.service.CompositeService
- implements Recoverable
The ResourceManager is the main class that is a set of components.
| 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 |
| 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 |
clusterTimeStamp
public static final long clusterTimeStamp
clientToAMSecretManager
protected org.apache.hadoop.yarn.security.client.ClientToAMSecretManager clientToAMSecretManager
containerTokenSecretManager
protected org.apache.hadoop.yarn.server.security.ContainerTokenSecretManager containerTokenSecretManager
appTokenSecretManager
protected org.apache.hadoop.yarn.security.ApplicationTokenSecretManager appTokenSecretManager
scheduler
protected ResourceScheduler scheduler
masterService
protected ApplicationMasterService masterService
nmLivelinessMonitor
protected NMLivelinessMonitor nmLivelinessMonitor
nodesListManager
protected NodesListManager nodesListManager
rmAppManager
protected RMAppManager rmAppManager
applicationACLsManager
protected org.apache.hadoop.yarn.server.security.ApplicationACLsManager applicationACLsManager
rmDTSecretManager
protected org.apache.hadoop.yarn.server.RMDelegationTokenSecretManager rmDTSecretManager
rmContext
protected RMContext rmContext
resourceTracker
protected ResourceTrackerService resourceTracker
ResourceManager
public ResourceManager(Store store)
getRMContext
public RMContext getRMContext()
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
createSchedulerEventDispatcher
protected org.apache.hadoop.yarn.event.EventHandler<SchedulerEvent> createSchedulerEventDispatcher()
createDispatcher
protected org.apache.hadoop.yarn.event.Dispatcher createDispatcher()
addIfService
protected void addIfService(Object object)
createScheduler
protected ResourceScheduler createScheduler()
createAMLauncher
protected ApplicationMasterLauncher createAMLauncher()
createAMLivelinessMonitor
protected AMLivelinessMonitor createAMLivelinessMonitor()
createDelegationTokenRenewer
protected DelegationTokenRenewer createDelegationTokenRenewer()
createRMAppManager
protected RMAppManager createRMAppManager()
startWepApp
protected void startWepApp()
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
doSecureLogin
protected void doSecureLogin()
throws IOException
- Throws:
IOException
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
createResourceTrackerService
protected ResourceTrackerService createResourceTrackerService()
createRMDelegationTokenSecretManager
protected org.apache.hadoop.yarn.server.RMDelegationTokenSecretManager createRMDelegationTokenSecretManager()
createClientRMService
protected ClientRMService createClientRMService()
createApplicationMasterService
protected ApplicationMasterService createApplicationMasterService()
createAdminService
protected AdminService createAdminService(ClientRMService clientRMService,
ApplicationMasterService applicationMasterService,
ResourceTrackerService resourceTrackerService)
getClientRMService
@InterfaceAudience.Private
public ClientRMService getClientRMService()
getResourceScheduler
@InterfaceAudience.Private
public ResourceScheduler getResourceScheduler()
- return the scheduler.
- Returns:
- the scheduler for the Resource Manager.
getResourceTrackerService
@InterfaceAudience.Private
public ResourceTrackerService getResourceTrackerService()
- return the resource tracking component.
- Returns:
- the resource tracking component.
getApplicationMasterService
@InterfaceAudience.Private
public ApplicationMasterService getApplicationMasterService()
getApplicationACLsManager
@InterfaceAudience.Private
public org.apache.hadoop.yarn.server.security.ApplicationACLsManager getApplicationACLsManager()
recover
public void recover(Store.RMState state)
throws Exception
- Specified by:
recover in interface Recoverable
- Throws:
Exception
main
public static void main(String[] argv)
Copyright © 2012 Apache Software Foundation. All Rights Reserved.