public class ResourceManager extends org.apache.hadoop.service.CompositeService implements Recoverable
| Modifier and Type | Class and Description |
|---|---|
static class |
ResourceManager.ApplicationAttemptEventDispatcher |
static class |
ResourceManager.ApplicationEventDispatcher |
static class |
ResourceManager.NodeEventDispatcher |
static class |
ResourceManager.RMContainerPreemptEventDispatcher |
static class |
ResourceManager.RMFatalEventDispatcher |
static class |
ResourceManager.SchedulerEventDispatcher |
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.RMActiveServices |
activeServices
"Active" services.
|
protected AdminService |
adminService |
protected org.apache.hadoop.yarn.server.security.ApplicationACLsManager |
applicationACLsManager |
protected ApplicationMasterService |
masterService |
protected NMLivelinessMonitor |
nmLivelinessMonitor |
protected NodesListManager |
nodesListManager |
protected QueueACLsManager |
queueACLsManager |
protected ResourceTrackerService |
resourceTracker |
protected RMAppManager |
rmAppManager |
protected RMContextImpl |
rmContext
"Always On" services.
|
protected RMSecretManagerService |
rmSecretManagerService |
protected ResourceScheduler |
scheduler |
static int |
SHUTDOWN_HOOK_PRIORITY
Priority of the ResourceManager shutdown hook.
|
| Constructor and Description |
|---|
ResourceManager() |
addIfService, addService, getServices, removeServiceclose, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStoppublic static final int SHUTDOWN_HOOK_PRIORITY
protected RMContextImpl rmContext
protected AdminService adminService
protected org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.RMActiveServices activeServices
CompositeService RMActiveServices.
RM is active when (1) HA is disabled, or (2) HA is enabled and the RM is
in Active state.protected RMSecretManagerService rmSecretManagerService
protected ResourceScheduler scheduler
protected ApplicationMasterService masterService
protected NMLivelinessMonitor nmLivelinessMonitor
protected NodesListManager nodesListManager
protected RMAppManager rmAppManager
protected org.apache.hadoop.yarn.server.security.ApplicationACLsManager applicationACLsManager
protected QueueACLsManager queueACLsManager
protected ResourceTrackerService resourceTracker
public RMContext getRMContext()
public static long getClusterTimeStamp()
protected static void setClusterTimeStamp(long timestamp)
protected void serviceInit(org.apache.hadoop.conf.Configuration conf)
throws Exception
serviceInit in class org.apache.hadoop.service.CompositeServiceExceptionprotected QueueACLsManager createQueueACLsManager(ResourceScheduler scheduler, org.apache.hadoop.conf.Configuration conf)
protected void setRMStateStore(RMStateStore rmStore)
protected org.apache.hadoop.yarn.event.EventHandler<SchedulerEvent> createSchedulerEventDispatcher()
protected org.apache.hadoop.yarn.event.Dispatcher createDispatcher()
protected ResourceScheduler createScheduler()
protected ApplicationMasterLauncher createAMLauncher()
protected AMLivelinessMonitor createAMLivelinessMonitor()
protected DelegationTokenRenewer createDelegationTokenRenewer()
protected RMAppManager createRMAppManager()
protected RMApplicationHistoryWriter createRMApplicationHistoryWriter()
protected static void validateConfigs(org.apache.hadoop.conf.Configuration conf)
protected void startWepApp()
protected boolean areActiveServicesRunning()
protected void serviceStart()
throws Exception
serviceStart in class org.apache.hadoop.service.CompositeServiceExceptionprotected void doSecureLogin()
throws IOException
IOExceptionprotected void serviceStop()
throws Exception
serviceStop in class org.apache.hadoop.service.CompositeServiceExceptionprotected ResourceTrackerService createResourceTrackerService()
protected ClientRMService createClientRMService()
protected ApplicationMasterService createApplicationMasterService()
protected AdminService createAdminService()
protected RMSecretManagerService createRMSecretManagerService()
@InterfaceAudience.Private public ClientRMService getClientRMService()
@InterfaceAudience.Private public ResourceScheduler getResourceScheduler()
@InterfaceAudience.Private public ResourceTrackerService getResourceTrackerService()
@InterfaceAudience.Private public ApplicationMasterService getApplicationMasterService()
@InterfaceAudience.Private public org.apache.hadoop.yarn.server.security.ApplicationACLsManager getApplicationACLsManager()
@InterfaceAudience.Private public QueueACLsManager getQueueACLsManager()
public void recover(RMStateStore.RMState state) throws Exception
recover in interface RecoverableExceptionpublic static void main(String[] argv)
public static InetSocketAddress getBindAddress(org.apache.hadoop.conf.Configuration conf)
conf - Copyright © 2014 Apache Software Foundation. All Rights Reserved.