@InterfaceAudience.Private @InterfaceStability.Unstable public class AHSv2ClientImpl extends AHSClient
Constructor and Description |
---|
AHSv2ClientImpl() |
Modifier and Type | Method and Description |
---|---|
org.apache.hadoop.yarn.api.records.ApplicationAttemptReport |
getApplicationAttemptReport(org.apache.hadoop.yarn.api.records.ApplicationAttemptId applicationAttemptId)
Get a report of the given ApplicationAttempt.
|
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.
|
org.apache.hadoop.yarn.api.records.ApplicationReport |
getApplicationReport(org.apache.hadoop.yarn.api.records.ApplicationId appId)
Get a report of the given Application.
|
List<org.apache.hadoop.yarn.api.records.ApplicationReport> |
getApplications()
Get a report (ApplicationReport) of all Applications in the cluster.
|
org.apache.hadoop.yarn.api.records.ContainerReport |
getContainerReport(org.apache.hadoop.yarn.api.records.ContainerId containerId)
Get a report of the given Container.
|
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.
|
void |
serviceInit(org.apache.hadoop.conf.Configuration conf) |
void |
serviceStart() |
void |
serviceStop() |
protected void |
setReaderClient(org.apache.hadoop.yarn.client.api.TimelineReaderClient readerClient) |
createAHSClient, createAHSv2Client
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStop
public void serviceInit(org.apache.hadoop.conf.Configuration conf)
serviceInit
in class org.apache.hadoop.service.AbstractService
@VisibleForTesting protected void setReaderClient(org.apache.hadoop.yarn.client.api.TimelineReaderClient readerClient)
public void serviceStart()
serviceStart
in class org.apache.hadoop.service.AbstractService
public void serviceStop()
serviceStop
in class org.apache.hadoop.service.AbstractService
public org.apache.hadoop.yarn.api.records.ApplicationReport getApplicationReport(org.apache.hadoop.yarn.api.records.ApplicationId appId) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException
AHSClient
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:
getApplicationReport
in class AHSClient
appId
- ApplicationId
of the application that needs a reportorg.apache.hadoop.yarn.exceptions.YarnException
IOException
public List<org.apache.hadoop.yarn.api.records.ApplicationReport> getApplications() throws org.apache.hadoop.yarn.exceptions.YarnException, IOException
AHSClient
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
AHSClient.getApplicationReport(ApplicationId)
.
getApplications
in class AHSClient
org.apache.hadoop.yarn.exceptions.YarnException
IOException
public org.apache.hadoop.yarn.api.records.ApplicationAttemptReport getApplicationAttemptReport(org.apache.hadoop.yarn.api.records.ApplicationAttemptId applicationAttemptId) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException
AHSClient
Get a report of the given ApplicationAttempt.
In secure mode, YARN
verifies access to the application, queue
etc. before accepting the request.
getApplicationAttemptReport
in class AHSClient
applicationAttemptId
- ApplicationAttemptId
of the application attempt that needs
a reportorg.apache.hadoop.yarn.exceptions.YarnException
org.apache.hadoop.yarn.exceptions.ApplicationAttemptNotFoundException
- if application attempt
not foundIOException
public List<org.apache.hadoop.yarn.api.records.ApplicationAttemptReport> getApplicationAttempts(org.apache.hadoop.yarn.api.records.ApplicationId applicationId) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException
AHSClient
Get a report of all (ApplicationAttempts) of Application in the cluster.
getApplicationAttempts
in class AHSClient
org.apache.hadoop.yarn.exceptions.YarnException
IOException
public org.apache.hadoop.yarn.api.records.ContainerReport getContainerReport(org.apache.hadoop.yarn.api.records.ContainerId containerId) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException
AHSClient
Get a report of the given Container.
In secure mode, YARN
verifies access to the application, queue
etc. before accepting the request.
getContainerReport
in class AHSClient
containerId
- ContainerId
of the container that needs a reportorg.apache.hadoop.yarn.exceptions.YarnException
org.apache.hadoop.yarn.exceptions.ContainerNotFoundException
- if container not foundIOException
public List<org.apache.hadoop.yarn.api.records.ContainerReport> getContainers(org.apache.hadoop.yarn.api.records.ApplicationAttemptId applicationAttemptId) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException
AHSClient
Get a report of all (Containers) of ApplicationAttempt in the cluster.
getContainers
in class AHSClient
org.apache.hadoop.yarn.exceptions.YarnException
IOException
Copyright © 2008–2024 Apache Software Foundation. All rights reserved.