@InterfaceAudience.Public @InterfaceStability.Stable public abstract class ApplicationReport extends Object
ApplicationReport
is a report of an application.
It includes details such as:
ApplicationId
of the application.ApplicationMaster
is running.ApplicationMaster
.YarnApplicationState
of the application.Token
of the application (if security is enabled).ApplicationBaseProtocol.getApplicationReport(org.apache.hadoop.yarn.api.protocolrecords.GetApplicationReportRequest)
Constructor and Description |
---|
ApplicationReport() |
Modifier and Type | Method and Description |
---|---|
abstract String |
getAmNodeLabelExpression()
Get the default Node Label expression for all the application's containers
|
abstract Token |
getAMRMToken()
Get the AMRM token of the application.
|
abstract ApplicationId |
getApplicationId()
Get the
ApplicationId of the application. |
abstract ApplicationResourceUsageReport |
getApplicationResourceUsageReport()
Retrieve the structure containing the job resources for this application
|
abstract Set<String> |
getApplicationTags()
Get all tags corresponding to the application
|
abstract Map<ApplicationTimeoutType,ApplicationTimeout> |
getApplicationTimeouts() |
abstract String |
getApplicationType()
Get the application's Type
|
abstract String |
getAppNodeLabelExpression()
Get the default Node Label expression for all the application's containers
|
abstract Token |
getClientToAMToken()
Get the client token for communicating with the
ApplicationMaster . |
abstract ApplicationAttemptId |
getCurrentApplicationAttemptId()
Get the
ApplicationAttemptId of the current
attempt of the application |
abstract String |
getDiagnostics()
Get the diagnositic information of the application in case of
errors.
|
abstract FinalApplicationStatus |
getFinalApplicationStatus()
Get the final finish status of the application.
|
abstract long |
getFinishTime()
Get the finish time of the application.
|
abstract String |
getHost()
Get the host on which the
ApplicationMaster
is running. |
abstract long |
getLaunchTime() |
abstract org.apache.hadoop.yarn.api.records.LogAggregationStatus |
getLogAggregationStatus()
Get log aggregation status for the application
|
abstract String |
getName()
Get the user-defined name of the application.
|
abstract Priority |
getPriority()
Get priority of the application
|
abstract float |
getProgress()
Get the application's progress ( range 0.0 to 1.0 )
|
abstract String |
getQueue()
Get the queue to which the application was submitted.
|
abstract String |
getRMClusterId()
Get RM ClusterId.
|
abstract int |
getRpcPort()
Get the RPC port of the
ApplicationMaster . |
abstract long |
getStartTime()
Get the start time of the application.
|
abstract long |
getSubmitTime() |
abstract String |
getTrackingUrl()
Get the tracking url for the application.
|
abstract String |
getUser()
Get the user who submitted the application.
|
abstract YarnApplicationState |
getYarnApplicationState()
Get the
YarnApplicationState of the application. |
abstract boolean |
isUnmanagedApp() |
abstract void |
setAmNodeLabelExpression(String amNodeLabelExpression) |
abstract void |
setAppNodeLabelExpression(String appNodeLabelExpression) |
abstract void |
setRMClusterId(String rmClusterId) |
abstract void |
setUnmanagedApp(boolean unmanagedApplication) |
@InterfaceAudience.Public @InterfaceStability.Stable public abstract ApplicationId getApplicationId()
ApplicationId
of the application.ApplicationId
of the application@InterfaceAudience.Public @InterfaceStability.Stable public abstract ApplicationAttemptId getCurrentApplicationAttemptId()
ApplicationAttemptId
of the current
attempt of the applicationApplicationAttemptId
of the attempt@InterfaceAudience.Public @InterfaceStability.Stable public abstract String getUser()
@InterfaceAudience.Public @InterfaceStability.Stable public abstract String getQueue()
@InterfaceAudience.Public @InterfaceStability.Stable public abstract String getName()
@InterfaceAudience.Public @InterfaceStability.Stable public abstract String getHost()
ApplicationMaster
is running.ApplicationMaster
is running@InterfaceAudience.Public @InterfaceStability.Stable public abstract int getRpcPort()
ApplicationMaster
.ApplicationMaster
@InterfaceAudience.Public @InterfaceStability.Stable public abstract Token getClientToAMToken()
ApplicationMaster
.
ClientToAMToken is the security token used by the AMs to verify
authenticity of any client
.
The ResourceManager
, provides a secure token (via
getClientToAMToken()
) which is verified by the
ApplicationMaster when the client directly talks to an AM.
ApplicationMaster
@InterfaceAudience.Public @InterfaceStability.Stable public abstract YarnApplicationState getYarnApplicationState()
YarnApplicationState
of the application.YarnApplicationState
of the application@InterfaceAudience.Public @InterfaceStability.Stable public abstract String getDiagnostics()
@InterfaceAudience.Public @InterfaceStability.Stable public abstract String getTrackingUrl()
@InterfaceAudience.Public @InterfaceStability.Stable public abstract long getStartTime()
@InterfaceAudience.Public @InterfaceStability.Stable public abstract long getSubmitTime()
@InterfaceAudience.Public @InterfaceStability.Unstable public abstract long getLaunchTime()
@InterfaceAudience.Public @InterfaceStability.Stable public abstract long getFinishTime()
@InterfaceAudience.Public @InterfaceStability.Stable public abstract FinalApplicationStatus getFinalApplicationStatus()
@InterfaceAudience.Public @InterfaceStability.Stable public abstract ApplicationResourceUsageReport getApplicationResourceUsageReport()
@InterfaceAudience.Public @InterfaceStability.Stable public abstract float getProgress()
@InterfaceAudience.Public @InterfaceStability.Stable public abstract String getApplicationType()
@InterfaceAudience.Public @InterfaceStability.Stable public abstract Set<String> getApplicationTags()
@InterfaceAudience.Public @InterfaceStability.Stable public abstract Token getAMRMToken()
The AMRM token is required for AM to RM scheduling operations. For
managed Application Masters YARN takes care of injecting it. For unmanaged
Applications Masters, the token must be obtained via this method and set
in the UserGroupInformation
of the
current user.
The AMRM token will be returned only if all the following conditions are met:
@InterfaceAudience.Public @InterfaceStability.Stable public abstract org.apache.hadoop.yarn.api.records.LogAggregationStatus getLogAggregationStatus()
@InterfaceAudience.Public @InterfaceStability.Unstable public abstract boolean isUnmanagedApp()
@InterfaceAudience.Public @InterfaceStability.Unstable public abstract void setUnmanagedApp(boolean unmanagedApplication)
unmanagedApplication
- true if RM should not manage the AM@InterfaceAudience.Public @InterfaceStability.Stable public abstract Priority getPriority()
@InterfaceStability.Unstable public abstract String getAppNodeLabelExpression()
@InterfaceStability.Unstable public abstract void setAppNodeLabelExpression(String appNodeLabelExpression)
@InterfaceStability.Unstable public abstract String getAmNodeLabelExpression()
@InterfaceStability.Unstable public abstract void setAmNodeLabelExpression(String amNodeLabelExpression)
@InterfaceAudience.Public @InterfaceStability.Unstable public abstract Map<ApplicationTimeoutType,ApplicationTimeout> getApplicationTimeouts()
@InterfaceAudience.Public @InterfaceStability.Stable public abstract String getRMClusterId()
@InterfaceAudience.Public @InterfaceStability.Stable public abstract void setRMClusterId(String rmClusterId)
Copyright © 2024 Apache Software Foundation. All rights reserved.