public class RMAppManager extends Object implements org.apache.hadoop.yarn.event.EventHandler<RMAppManagerEvent>, Recoverable
| Modifier and Type | Field and Description | 
|---|---|
| protected int | completedAppsInStateStore | 
| Constructor and Description | 
|---|
| RMAppManager(RMContext context,
            YarnScheduler scheduler,
            ApplicationMasterService masterService,
            org.apache.hadoop.yarn.server.security.ApplicationACLsManager applicationACLsManager,
            org.apache.hadoop.conf.Configuration conf) | 
| Modifier and Type | Method and Description | 
|---|---|
| protected void | checkAppNumCompletedLimit() | 
| void | checkAppNumCompletedLimit4Test() | 
| protected void | finishApplication(org.apache.hadoop.yarn.api.records.ApplicationId applicationId) | 
| void | finishApplication4Test(org.apache.hadoop.yarn.api.records.ApplicationId applicationId) | 
| protected int | getCompletedAppsListSize() | 
| String | getQueuePath(String queueName) | 
| protected String | getUserNameForPlacement(String user,
                       org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext context,
                       PlacementManager placementManager) | 
| void | handle(RMAppManagerEvent event) | 
| void | logApplicationSummary(org.apache.hadoop.yarn.api.records.ApplicationId appId) | 
| void | moveApplicationAcrossQueue(org.apache.hadoop.yarn.api.records.ApplicationId applicationId,
                          String targetQueue)moveToQueue will invoke scheduler api to perform move queue operation. | 
| void | recover(RMStateStore.RMState state) | 
| protected void | recoverApplication(ApplicationStateData appState,
                  RMStateStore.RMState rmState) | 
| void | setFederationStateStoreService(FederationStateStoreService stateStoreService) | 
| protected void | submitApplication(org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext submissionContext,
                 long submitTime,
                 String user)Deprecated.  | 
| protected void | submitApplication(org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext submissionContext,
                 long submitTime,
                 org.apache.hadoop.security.UserGroupInformation userUgi) | 
| void | updateApplicationPriority(org.apache.hadoop.security.UserGroupInformation callerUGI,
                         org.apache.hadoop.yarn.api.records.ApplicationId applicationId,
                         org.apache.hadoop.yarn.api.records.Priority newAppPriority)updateApplicationPriority will invoke scheduler api to update the
 new priority to RM and StateStore. | 
| Map<org.apache.hadoop.yarn.api.records.ApplicationTimeoutType,String> | updateApplicationTimeout(RMApp app,
                        Map<org.apache.hadoop.yarn.api.records.ApplicationTimeoutType,String> newTimeoutInISO8601Format) | 
| protected void | writeAuditLog(org.apache.hadoop.yarn.api.records.ApplicationId appId) | 
public RMAppManager(RMContext context, YarnScheduler scheduler, ApplicationMasterService masterService, org.apache.hadoop.yarn.server.security.ApplicationACLsManager applicationACLsManager, org.apache.hadoop.conf.Configuration conf)
@VisibleForTesting public void logApplicationSummary(org.apache.hadoop.yarn.api.records.ApplicationId appId)
protected int getCompletedAppsListSize()
protected void finishApplication(org.apache.hadoop.yarn.api.records.ApplicationId applicationId)
protected void writeAuditLog(org.apache.hadoop.yarn.api.records.ApplicationId appId)
protected void checkAppNumCompletedLimit()
@VisibleForTesting @Deprecated protected void submitApplication(org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext submissionContext, long submitTime, String user) throws org.apache.hadoop.yarn.exceptions.YarnException
org.apache.hadoop.yarn.exceptions.YarnException@VisibleForTesting
protected void submitApplication(org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext submissionContext,
                                                    long submitTime,
                                                    org.apache.hadoop.security.UserGroupInformation userUgi)
                                             throws org.apache.hadoop.yarn.exceptions.YarnException
org.apache.hadoop.yarn.exceptions.YarnExceptionprotected void recoverApplication(ApplicationStateData appState, RMStateStore.RMState rmState) throws Exception
Exceptionpublic void recover(RMStateStore.RMState state) throws Exception
recover in interface RecoverableExceptionpublic void handle(RMAppManagerEvent event)
handle in interface org.apache.hadoop.yarn.event.EventHandler<RMAppManagerEvent>public Map<org.apache.hadoop.yarn.api.records.ApplicationTimeoutType,String> updateApplicationTimeout(RMApp app, Map<org.apache.hadoop.yarn.api.records.ApplicationTimeoutType,String> newTimeoutInISO8601Format) throws org.apache.hadoop.yarn.exceptions.YarnException
org.apache.hadoop.yarn.exceptions.YarnExceptionpublic void updateApplicationPriority(org.apache.hadoop.security.UserGroupInformation callerUGI,
                                      org.apache.hadoop.yarn.api.records.ApplicationId applicationId,
                                      org.apache.hadoop.yarn.api.records.Priority newAppPriority)
                               throws org.apache.hadoop.yarn.exceptions.YarnException
callerUGI - userapplicationId - Application IdnewAppPriority - proposed new application priorityorg.apache.hadoop.yarn.exceptions.YarnException - Handle exceptionspublic void moveApplicationAcrossQueue(org.apache.hadoop.yarn.api.records.ApplicationId applicationId,
                                       String targetQueue)
                                throws org.apache.hadoop.yarn.exceptions.YarnException
applicationId - Application Id.targetQueue - Target queue to which this app has to be moved.org.apache.hadoop.yarn.exceptions.YarnException - Handle exceptions.@VisibleForTesting protected String getUserNameForPlacement(String user, org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext context, PlacementManager placementManager) throws org.apache.hadoop.yarn.exceptions.YarnException
org.apache.hadoop.yarn.exceptions.YarnException@VisibleForTesting public void setFederationStateStoreService(FederationStateStoreService stateStoreService)
@VisibleForTesting public void checkAppNumCompletedLimit4Test()
@VisibleForTesting public void finishApplication4Test(org.apache.hadoop.yarn.api.records.ApplicationId applicationId)
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.