public interface ClientRmOperations
ClientRmTemplate
Modifier and Type | Method and Description |
---|---|
org.apache.hadoop.yarn.api.records.ApplicationReport |
getApplicationReport(org.apache.hadoop.yarn.api.records.ApplicationId applicationId)
Gets a report of the application.
|
org.apache.hadoop.yarn.api.records.Token |
getDelegationToken(java.lang.String renewer)
Gets the resource manager delegation token.
|
org.apache.hadoop.yarn.api.protocolrecords.GetNewApplicationResponse |
getNewApplication()
Requests a new application from a resource manager.
|
org.apache.hadoop.yarn.api.protocolrecords.KillApplicationResponse |
killApplication(org.apache.hadoop.yarn.api.records.ApplicationId applicationId)
Requests
ResourceManager to abort submitted application. |
java.util.List<org.apache.hadoop.yarn.api.records.ApplicationReport> |
listApplications()
Gets a list of
ApplicationReport s from a resource manager. |
java.util.List<org.apache.hadoop.yarn.api.records.ApplicationReport> |
listApplications(java.util.EnumSet<org.apache.hadoop.yarn.api.records.YarnApplicationState> states,
java.util.Set<java.lang.String> types)
Gets a list of
ApplicationReport s from a resource manager. |
org.apache.hadoop.yarn.api.protocolrecords.SubmitApplicationResponse |
submitApplication(org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext appSubContext)
Submits a new application into resource manager.
|
org.apache.hadoop.yarn.api.protocolrecords.GetNewApplicationResponse getNewApplication()
ApplicationId
but response
also contains information about resource capabilities.GetNewApplicationResponse
org.apache.hadoop.yarn.api.protocolrecords.SubmitApplicationResponse submitApplication(org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext appSubContext)
appSubContext
- the Application Submission ContextSubmitApplicationResponse
java.util.List<org.apache.hadoop.yarn.api.records.ApplicationReport> listApplications()
ApplicationReport
s from a resource manager.ApplicationReport
sjava.util.List<org.apache.hadoop.yarn.api.records.ApplicationReport> listApplications(java.util.EnumSet<org.apache.hadoop.yarn.api.records.YarnApplicationState> states, java.util.Set<java.lang.String> types)
ApplicationReport
s from a resource manager. Allows
to filter results by using a set of YarnApplicationState
s and
registered application types.states
- the yarn application statestypes
- the yarn application typesApplicationReport
sorg.apache.hadoop.yarn.api.protocolrecords.KillApplicationResponse killApplication(org.apache.hadoop.yarn.api.records.ApplicationId applicationId)
ResourceManager
to abort submitted application.applicationId
- the application idKillApplicationResponse
org.apache.hadoop.yarn.api.records.Token getDelegationToken(java.lang.String renewer)
renewer
- the renewer as kerberos principalorg.apache.hadoop.yarn.api.records.ApplicationReport getApplicationReport(org.apache.hadoop.yarn.api.records.ApplicationId applicationId)
applicationId
- the application idApplicationReport