java.io.Closeable, java.lang.AutoCloseable, org.apache.hadoop.service.ServiceAHSClientImpl, AHSv2ClientImpl@Public
@Stable
public abstract class AHSClient
extends org.apache.hadoop.service.AbstractService
| Constructor | Description |
|---|---|
AHSClient(java.lang.String name) |
| Modifier and Type | Method | Description |
|---|---|---|
static AHSClient |
createAHSClient() |
Create a new instance of AHSClient.
|
static AHSClient |
createAHSv2Client() |
|
abstract org.apache.hadoop.yarn.api.records.ApplicationAttemptReport |
getApplicationAttemptReport(org.apache.hadoop.yarn.api.records.ApplicationAttemptId applicationAttemptId) |
Get a report of the given ApplicationAttempt.
|
abstract java.util.List<org.apache.hadoop.yarn.api.records.ApplicationAttemptReport> |
getApplicationAttempts(org.apache.hadoop.yarn.api.records.ApplicationId applicationId) |
Get a report of all (ApplicationAttempts) of Application in the cluster.
|
abstract org.apache.hadoop.yarn.api.records.ApplicationReport |
getApplicationReport(org.apache.hadoop.yarn.api.records.ApplicationId appId) |
Get a report of the given Application.
|
abstract java.util.List<org.apache.hadoop.yarn.api.records.ApplicationReport> |
getApplications() |
Get a report (ApplicationReport) of all Applications in the cluster.
|
abstract org.apache.hadoop.yarn.api.records.ContainerReport |
getContainerReport(org.apache.hadoop.yarn.api.records.ContainerId containerId) |
Get a report of the given Container.
|
abstract java.util.List<org.apache.hadoop.yarn.api.records.ContainerReport> |
getContainers(org.apache.hadoop.yarn.api.records.ApplicationAttemptId applicationAttemptId) |
Get a report of all (Containers) of ApplicationAttempt in the cluster.
|
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, serviceInit, serviceStart, serviceStop, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStop@Public public static AHSClient createAHSClient()
@Evolving @Public public static AHSClient createAHSv2Client()
public abstract org.apache.hadoop.yarn.api.records.ApplicationReport getApplicationReport(org.apache.hadoop.yarn.api.records.ApplicationId appId)
throws org.apache.hadoop.yarn.exceptions.YarnException,
java.io.IOException
In secure mode, YARN verifies access to the application, queue
etc. before accepting the request.
If the user does not have VIEW_APP access then the following
fields in the report will be set to stubbed values:
appId - ApplicationId of the application that needs a reportorg.apache.hadoop.yarn.exceptions.YarnExceptionjava.io.IOExceptionpublic abstract java.util.List<org.apache.hadoop.yarn.api.records.ApplicationReport> getApplications()
throws org.apache.hadoop.yarn.exceptions.YarnException,
java.io.IOException
Get a report (ApplicationReport) of all Applications in the cluster.
If the user does not have VIEW_APP access for an application
then the corresponding report will be filtered as described in
getApplicationReport(ApplicationId).
org.apache.hadoop.yarn.exceptions.YarnExceptionjava.io.IOExceptionpublic abstract org.apache.hadoop.yarn.api.records.ApplicationAttemptReport getApplicationAttemptReport(org.apache.hadoop.yarn.api.records.ApplicationAttemptId applicationAttemptId)
throws org.apache.hadoop.yarn.exceptions.YarnException,
java.io.IOException
Get a report of the given ApplicationAttempt.
In secure mode, YARN verifies access to the application, queue
etc. before accepting the request.
applicationAttemptId - ApplicationAttemptId of the application attempt that needs
a reportorg.apache.hadoop.yarn.exceptions.YarnExceptionorg.apache.hadoop.yarn.exceptions.ApplicationAttemptNotFoundException - if application attempt
not foundjava.io.IOExceptionpublic abstract java.util.List<org.apache.hadoop.yarn.api.records.ApplicationAttemptReport> getApplicationAttempts(org.apache.hadoop.yarn.api.records.ApplicationId applicationId)
throws org.apache.hadoop.yarn.exceptions.YarnException,
java.io.IOException
Get a report of all (ApplicationAttempts) of Application in the cluster.
applicationId - org.apache.hadoop.yarn.exceptions.YarnExceptionjava.io.IOExceptionpublic abstract org.apache.hadoop.yarn.api.records.ContainerReport getContainerReport(org.apache.hadoop.yarn.api.records.ContainerId containerId)
throws org.apache.hadoop.yarn.exceptions.YarnException,
java.io.IOException
Get a report of the given Container.
In secure mode, YARN verifies access to the application, queue
etc. before accepting the request.
containerId - ContainerId of the container that needs a reportorg.apache.hadoop.yarn.exceptions.YarnExceptionorg.apache.hadoop.yarn.exceptions.ContainerNotFoundException - if container not foundjava.io.IOExceptionpublic abstract java.util.List<org.apache.hadoop.yarn.api.records.ContainerReport> getContainers(org.apache.hadoop.yarn.api.records.ApplicationAttemptId applicationAttemptId)
throws org.apache.hadoop.yarn.exceptions.YarnException,
java.io.IOException
Get a report of all (Containers) of ApplicationAttempt in the cluster.
applicationAttemptId - org.apache.hadoop.yarn.exceptions.YarnExceptionjava.io.IOExceptionCopyright © 2008–2025 Apache Software Foundation. All rights reserved.