Interface ApplicationBaseProtocol
- All Known Subinterfaces:
ApplicationClientProtocol,ApplicationHistoryProtocol
The protocol between clients and the ResourceManager or
ApplicationHistoryServer to get information on applications,
application attempts and containers.
-
Method Summary
Modifier and TypeMethodDescriptionCancel an existing delegationToken.The interface used by clients to get a report of an Application Attempt from theResourceManagerorApplicationHistoryServerThe interface used by clients to get a report of all Application attempts in the cluster from theResourceManagerorApplicationHistoryServerThe interface used by clients to get a report of an Application from theResourceManagerorApplicationHistoryServer.getApplications(GetApplicationsRequest request) The interface used by clients to get a report of Applications matching the filters defined byGetApplicationsRequestin the cluster from theResourceManagerorApplicationHistoryServer.The interface used by clients to get a report of an Container from theResourceManagerorApplicationHistoryServergetContainers(GetContainersRequest request) The interface used by clients to get a report of Containers for an application attempt from theResourceManagerorApplicationHistoryServerThe interface used by clients to get delegation token, enabling the containers to be able to talk to the service using those tokens.Renew an existing delegationToken.
-
Method Details
-
getApplicationReport
@Public @Stable GetApplicationReportResponse getApplicationReport(GetApplicationReportRequest request) throws YarnException, IOException The interface used by clients to get a report of an Application from theResourceManagerorApplicationHistoryServer.The client, via
GetApplicationReportRequestprovides theApplicationIdof the application.In secure mode,the
ResourceManagerorApplicationHistorySerververifies access to the application, queue etc. before accepting the request.The
ResourceManagerorApplicationHistoryServerresponds with aGetApplicationReportResponsewhich includes theApplicationReportfor the application.If the user does not have
VIEW_APPaccess then the following fields in the report will be set to stubbed values:- host - set to "N/A"
- RPC port - set to -1
- client token - set to "N/A"
- diagnostics - set to "N/A"
- tracking URL - set to "N/A"
- original tracking URL - set to "N/A"
- resource usage report - all values are -1
- Parameters:
request- request for an application report- Returns:
- application report
- Throws:
YarnException- exceptions from yarn servers.IOException- io error occur.
-
getApplications
@Public @Stable GetApplicationsResponse getApplications(GetApplicationsRequest request) throws YarnException, IOException The interface used by clients to get a report of Applications matching the filters defined by
GetApplicationsRequestin the cluster from theResourceManagerorApplicationHistoryServer.The
ResourceManagerorApplicationHistoryServerresponds with aGetApplicationsResponsewhich includes theApplicationReportfor the applications.If the user does not have
VIEW_APPaccess for an application then the corresponding report will be filtered as described ingetApplicationReport(GetApplicationReportRequest).- Parameters:
request- request for report on applications- Returns:
- report on applications matching the given application types defined in the request
- Throws:
YarnException- exceptions from yarn servers.IOException- io error occur.- See Also:
-
getApplicationAttemptReport
@Public @Unstable GetApplicationAttemptReportResponse getApplicationAttemptReport(GetApplicationAttemptReportRequest request) throws YarnException, IOException The interface used by clients to get a report of an Application Attempt from theResourceManagerorApplicationHistoryServerThe client, via
GetApplicationAttemptReportRequestprovides theApplicationAttemptIdof the application attempt.In secure mode,the
ResourceManagerorApplicationHistorySerververifies access to the method before accepting the request.The
ResourceManagerorApplicationHistoryServerresponds with aGetApplicationAttemptReportResponsewhich includes theApplicationAttemptReportfor the application attempt.If the user does not have
VIEW_APPaccess then the following fields in the report will be set to stubbed values:- host
- RPC port
- client token
- diagnostics - set to "N/A"
- tracking URL
- Parameters:
request- request for an application attempt report- Returns:
- application attempt report
- Throws:
YarnException- exceptions from yarn servers.IOException- io error occur.
-
getApplicationAttempts
@Public @Unstable GetApplicationAttemptsResponse getApplicationAttempts(GetApplicationAttemptsRequest request) throws YarnException, IOException The interface used by clients to get a report of all Application attempts in the cluster from the
ResourceManagerorApplicationHistoryServerThe
ResourceManagerorApplicationHistoryServerresponds with aGetApplicationAttemptsRequestwhich includes theApplicationAttemptReportfor all the applications attempts of a specified application attempt.If the user does not have
VIEW_APPaccess for an application then the corresponding report will be filtered as described ingetApplicationAttemptReport(GetApplicationAttemptReportRequest).- Parameters:
request- request for reports on all application attempts of an application- Returns:
- reports on all application attempts of an application
- Throws:
YarnException- exceptions from yarn servers.IOException- io error occur.
-
getContainerReport
@Public @Unstable GetContainerReportResponse getContainerReport(GetContainerReportRequest request) throws YarnException, IOException The interface used by clients to get a report of an Container from the
ResourceManagerorApplicationHistoryServerThe client, via
GetContainerReportRequestprovides theContainerIdof the container.In secure mode,the
ResourceManagerorApplicationHistorySerververifies access to the method before accepting the request.The
ResourceManagerorApplicationHistoryServerresponds with aGetContainerReportResponsewhich includes theContainerReportfor the container.- Parameters:
request- request for a container report- Returns:
- container report
- Throws:
YarnException- exceptions from yarn servers.IOException- io error occur.
-
getContainers
@Public @Unstable GetContainersResponse getContainers(GetContainersRequest request) throws YarnException, IOException The interface used by clients to get a report of Containers for an application attempt from the
ResourceManagerorApplicationHistoryServerThe client, via
GetContainersRequestprovides theApplicationAttemptIdof the application attempt.In secure mode,the
ResourceManagerorApplicationHistorySerververifies access to the method before accepting the request.The
ResourceManagerorApplicationHistoryServerresponds with aGetContainersResponsewhich includes a list ofContainerReportfor all the containers of a specific application attempt.- Parameters:
request- request for a list of container reports of an application attempt.- Returns:
- reports on all containers of an application attempt
- Throws:
YarnException- exceptions from yarn servers.IOException- io error occur.
-
getDelegationToken
@Public @Stable GetDelegationTokenResponse getDelegationToken(GetDelegationTokenRequest request) throws YarnException, IOException The interface used by clients to get delegation token, enabling the containers to be able to talk to the service using those tokens.
The
ResourceManagerorApplicationHistoryServerresponds with the delegationTokenthat can be used by the client to speak to this service.- Parameters:
request- request to get a delegation token for the client.- Returns:
- delegation token that can be used to talk to this service
- Throws:
YarnException- exceptions from yarn servers.IOException- io error occur.
-
renewDelegationToken
@Private @Unstable RenewDelegationTokenResponse renewDelegationToken(RenewDelegationTokenRequest request) throws YarnException, IOException Renew an existing delegationToken.- Parameters:
request- the delegation token to be renewed.- Returns:
- the new expiry time for the delegation token.
- Throws:
YarnException- exceptions from yarn servers.IOException- io error occur.
-
cancelDelegationToken
@Private @Unstable CancelDelegationTokenResponse cancelDelegationToken(CancelDelegationTokenRequest request) throws YarnException, IOException Cancel an existing delegationToken.- Parameters:
request- the delegation token to be cancelled.- Returns:
- an empty response.
- Throws:
YarnException- exceptions from yarn servers.IOException- io error occur.
-