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() |
protected void |
finishApplication(org.apache.hadoop.yarn.api.records.ApplicationId applicationId) |
protected int |
getCompletedAppsListSize() |
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) |
protected void |
submitApplication(org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext submissionContext,
long submitTime,
String user) |
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)
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()
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
protected void recoverApplication(ApplicationStateData appState, RMStateStore.RMState rmState) throws Exception
Exception
public void recover(RMStateStore.RMState state) throws Exception
recover
in interface Recoverable
Exception
public 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.YarnException
public 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.Copyright © 2008–2018 Apache Software Foundation. All rights reserved.