public abstract class AppReportFetcher extends Object
| Modifier and Type | Class and Description |
|---|---|
protected static class |
AppReportFetcher.AppReportSource |
protected static class |
AppReportFetcher.FetchedAppReport |
| Constructor and Description |
|---|
AppReportFetcher(org.apache.hadoop.conf.Configuration conf)
Create a new Connection to the RM/Application History Server to fetch Application reports.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAhsAppPageUrlBase() |
protected org.apache.hadoop.yarn.api.ApplicationHistoryProtocol |
getAHSProxy(org.apache.hadoop.conf.Configuration configuration) |
protected AppReportFetcher.FetchedAppReport |
getApplicationReport(org.apache.hadoop.yarn.api.ApplicationClientProtocol applicationsManager,
org.apache.hadoop.yarn.api.records.ApplicationId appId)
Get an application report for the specified application id from the RM and
fall back to the Application History Server if not found in RM.
|
abstract AppReportFetcher.FetchedAppReport |
getApplicationReport(org.apache.hadoop.yarn.api.records.ApplicationId appId)
Get an application report for the specified application id from the RM and
fall back to the Application History Server if not found in RM.
|
protected org.apache.hadoop.conf.Configuration |
getConf() |
abstract String |
getRmAppPageUrlBase(org.apache.hadoop.yarn.api.records.ApplicationId appId) |
void |
setHistoryManager(org.apache.hadoop.yarn.api.ApplicationHistoryProtocol historyManager) |
void |
stop() |
public AppReportFetcher(org.apache.hadoop.conf.Configuration conf)
conf - the conf to use to know where the RM is.protected org.apache.hadoop.yarn.api.ApplicationHistoryProtocol getAHSProxy(org.apache.hadoop.conf.Configuration configuration)
throws IOException
IOExceptionpublic abstract AppReportFetcher.FetchedAppReport getApplicationReport(org.apache.hadoop.yarn.api.records.ApplicationId appId) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException
appId - id of the application to get.org.apache.hadoop.yarn.exceptions.YarnException - on any error.IOExceptionprotected AppReportFetcher.FetchedAppReport getApplicationReport(org.apache.hadoop.yarn.api.ApplicationClientProtocol applicationsManager, org.apache.hadoop.yarn.api.records.ApplicationId appId) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException
applicationsManager - what to use to get the RM reports.appId - id of the application to get.org.apache.hadoop.yarn.exceptions.YarnException - on any error.IOException - connection exception.public abstract String getRmAppPageUrlBase(org.apache.hadoop.yarn.api.records.ApplicationId appId) throws IOException, org.apache.hadoop.yarn.exceptions.YarnException
IOExceptionorg.apache.hadoop.yarn.exceptions.YarnExceptionpublic String getAhsAppPageUrlBase()
protected org.apache.hadoop.conf.Configuration getConf()
public void stop()
@VisibleForTesting public void setHistoryManager(org.apache.hadoop.yarn.api.ApplicationHistoryProtocol historyManager)
Copyright © 2008–2024 Apache Software Foundation. All rights reserved.