public interface RMAppAttempt extends org.apache.hadoop.yarn.event.EventHandler<RMAppAttemptEvent>
RMApp
can have multiple app attempts based on
YarnConfiguration.RM_AM_MAX_ATTEMPTS
. For specific
implementation take a look at RMAppAttemptImpl
.Modifier and Type | Method and Description |
---|---|
org.apache.hadoop.yarn.api.records.ApplicationAttemptReport |
createApplicationAttemptReport()
Create the Application attempt report from the
RMAppAttempt |
org.apache.hadoop.yarn.api.records.YarnApplicationAttemptState |
createApplicationAttemptState()
Create the external user-facing state of the attempt of ApplicationMaster
from the current state of the
RMAppAttempt . |
org.apache.hadoop.security.token.Token<org.apache.hadoop.yarn.security.client.ClientToAMTokenIdentifier> |
createClientToken(String clientName)
Create a token for authenticating a client connection to the app attempt
|
BlacklistManager |
getAMBlacklistManager()
Get the
BlacklistManager that manages blacklists for AM failures |
org.apache.hadoop.security.token.Token<org.apache.hadoop.yarn.security.AMRMTokenIdentifier> |
getAMRMToken()
The AMRMToken belonging to this app attempt
|
org.apache.hadoop.yarn.api.records.ApplicationAttemptId |
getAppAttemptId()
Get the application attempt id for this
RMAppAttempt . |
RMAppAttemptState |
getAppAttemptState()
The state of the
RMAppAttempt . |
org.apache.hadoop.yarn.api.records.ApplicationResourceUsageReport |
getApplicationResourceUsageReport()
Get application container and resource usage information.
|
Set<String> |
getBlacklistedNodes() |
SecretKey |
getClientTokenMasterKey()
The master key for client-to-AM tokens for this app attempt.
|
String |
getDiagnostics()
Diagnostics information for the application attempt.
|
org.apache.hadoop.yarn.api.records.FinalApplicationStatus |
getFinalApplicationStatus()
The final status set by the AM.
|
ConcurrentMap<org.apache.hadoop.yarn.api.records.NodeId,List<org.apache.hadoop.yarn.api.records.ContainerStatus>> |
getFinishedContainersSentToAMReference()
The map of conatiners per Node that are already sent to the AM.
|
long |
getFinishTime()
the finish time of the application attempt.
|
String |
getHost()
The host on which the
RMAppAttempt is running/ran on. |
List<org.apache.hadoop.yarn.api.records.ContainerStatus> |
getJustFinishedContainers()
Return the list of last set of finished containers.
|
ConcurrentMap<org.apache.hadoop.yarn.api.records.NodeId,List<org.apache.hadoop.yarn.api.records.ContainerStatus>> |
getJustFinishedContainersReference()
Returns a reference to the map of last set of finished containers to the
corresponding node.
|
org.apache.hadoop.yarn.api.records.Container |
getMasterContainer()
The container on which the Application Master is running.
|
String |
getOriginalTrackingUrl()
The original url at which the status of the application attempt can be
accessed.
|
RMAppAttemptState |
getPreviousState()
The previous state of the
RMAppAttempt before the current state. |
float |
getProgress()
Progress for the application attempt.
|
RMAppAttemptMetrics |
getRMAppAttemptMetrics()
Get metrics from the
RMAppAttempt |
int |
getRpcPort()
The rpc port of the
RMAppAttempt . |
long |
getStartTime()
the start time of the application.
|
RMAppAttemptState |
getState()
The current state of the
RMAppAttempt . |
org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext |
getSubmissionContext()
The application submission context for this
RMAppAttempt . |
String |
getTrackingUrl()
The url at which the status of the application attempt can be accessed.
|
String |
getWebProxyBase()
The base to be prepended to web URLs that are not relative, and the user
has been checked.
|
List<org.apache.hadoop.yarn.api.records.ContainerStatus> |
pullJustFinishedContainers()
Return a list of the last set of finished containers, resetting the
finished containers to empty.
|
boolean |
shouldCountTowardsMaxAttemptRetry()
Return the flag which indicates whether the attempt failure should be
counted to attempt retry count.
|
void |
updateAMLaunchDiagnostics(String amLaunchDiagnostics)
To capture Launch diagnostics of the app.
|
org.apache.hadoop.yarn.api.records.ApplicationAttemptId getAppAttemptId()
RMAppAttempt
.ApplicationAttemptId
for this RM attempt.RMAppAttemptState getAppAttemptState()
RMAppAttempt
.RMAppAttemptState
of this RMAppAttempt
String getHost()
RMAppAttempt
is running/ran on.RMAppAttempt
ran/is running on.int getRpcPort()
RMAppAttempt
.RMAppAttempt
to which the clients can connect
to.String getTrackingUrl()
String getOriginalTrackingUrl()
String getWebProxyBase()
String getDiagnostics()
float getProgress()
RMAppAttempt
org.apache.hadoop.yarn.api.records.FinalApplicationStatus getFinalApplicationStatus()
List<org.apache.hadoop.yarn.api.records.ContainerStatus> pullJustFinishedContainers()
ConcurrentMap<org.apache.hadoop.yarn.api.records.NodeId,List<org.apache.hadoop.yarn.api.records.ContainerStatus>> getJustFinishedContainersReference()
List<org.apache.hadoop.yarn.api.records.ContainerStatus> getJustFinishedContainers()
ConcurrentMap<org.apache.hadoop.yarn.api.records.NodeId,List<org.apache.hadoop.yarn.api.records.ContainerStatus>> getFinishedContainersSentToAMReference()
org.apache.hadoop.yarn.api.records.Container getMasterContainer()
Container
on which the application master is running.org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext getSubmissionContext()
RMAppAttempt
.org.apache.hadoop.security.token.Token<org.apache.hadoop.yarn.security.AMRMTokenIdentifier> getAMRMToken()
@InterfaceAudience.LimitedPrivate(value="RMStateStore") SecretKey getClientTokenMasterKey()
org.apache.hadoop.security.token.Token<org.apache.hadoop.yarn.security.client.ClientToAMTokenIdentifier> createClientToken(String clientName)
clientName
- the name of the client requesting the tokenorg.apache.hadoop.yarn.api.records.ApplicationResourceUsageReport getApplicationResourceUsageReport()
BlacklistManager getAMBlacklistManager()
BlacklistManager
that manages blacklists for AM failuresBlacklistManager
that tracks AM failures.long getStartTime()
RMAppAttemptState getState()
RMAppAttempt
.RMAppAttemptState
for this application
attempt.RMAppAttemptState getPreviousState()
RMAppAttempt
before the current state.RMAppAttempt
before the current state
for this application attempt.org.apache.hadoop.yarn.api.records.YarnApplicationAttemptState createApplicationAttemptState()
RMAppAttempt
.org.apache.hadoop.yarn.api.records.ApplicationAttemptReport createApplicationAttemptReport()
RMAppAttempt
ApplicationAttemptReport
boolean shouldCountTowardsMaxAttemptRetry()
There failure types should not be counted to attempt retry count:
RMAppAttemptMetrics getRMAppAttemptMetrics()
RMAppAttempt
long getFinishTime()
void updateAMLaunchDiagnostics(String amLaunchDiagnostics)
amLaunchDiagnostics
- amLaunchDiagnostics.Copyright © 2008–2023 Apache Software Foundation. All rights reserved.