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 |
class |
ResourceManager.RMActiveServices
RMActiveServices handles all the Active services in the RM.
|
static class |
ResourceManager.RMFatalEventDispatcher |
static class |
ResourceManager.SchedulerEventDispatcher |
Modifier and Type | Field and Description |
---|---|
protected 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 ReservationSystem |
reservationSystem |
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.
|
protected String |
webAppAddress |
Constructor and Description |
---|
ResourceManager() |
addIfService, addService, getServices, removeService
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStop
public static final int SHUTDOWN_HOOK_PRIORITY
protected RMContextImpl rmContext
protected AdminService adminService
protected 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 ReservationSystem reservationSystem
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
protected String webAppAddress
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.CompositeService
Exception
protected EmbeddedElector createEmbeddedElector() throws Exception
Exception
public org.apache.curator.framework.CuratorFramework createAndStartCurator(org.apache.hadoop.conf.Configuration conf) throws Exception
Exception
public org.apache.curator.framework.CuratorFramework getCurator()
public String getZkRootNodePassword()
protected 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 ReservationSystem createReservationSystem()
protected ApplicationMasterLauncher createAMLauncher()
protected AMLivelinessMonitor createAMLivelinessMonitor()
protected RMNodeLabelsManager createNodeLabelManager() throws InstantiationException, IllegalAccessException
protected DelegationTokenRenewer createDelegationTokenRenewer()
protected RMAppManager createRMAppManager()
protected RMApplicationHistoryWriter createRMApplicationHistoryWriter()
protected SystemMetricsPublisher createSystemMetricsPublisher()
protected static void validateConfigs(org.apache.hadoop.conf.Configuration conf)
public void handleTransitionToStandBy()
protected void startWepApp()
protected void createAndInitActiveServices()
activeServices
. This creates an
instance of ResourceManager.RMActiveServices
and initializes it.protected boolean areActiveServicesRunning()
protected void serviceStart() throws Exception
serviceStart
in class org.apache.hadoop.service.CompositeService
Exception
protected void doSecureLogin() throws IOException
IOException
protected void serviceStop() throws Exception
serviceStop
in class org.apache.hadoop.service.CompositeService
Exception
protected ResourceTrackerService createResourceTrackerService()
protected ClientRMService createClientRMService()
protected ApplicationMasterService createApplicationMasterService()
protected AdminService createAdminService()
protected RMSecretManagerService createRMSecretManagerService()
protected RMDelegatedNodeLabelsUpdater createRMDelegatedNodeLabelsUpdater()
@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 Recoverable
Exception
public static void main(String[] argv)
public static InetSocketAddress getBindAddress(org.apache.hadoop.conf.Configuration conf)
conf
- Copyright © 2018 Apache Software Foundation. All Rights Reserved.