DefaultAppReportFetcher, FedAppReportFetcherpublic abstract class AppReportFetcher
extends java.lang.Object
| Modifier and Type | Class | Description |
|---|---|---|
protected static class |
AppReportFetcher.AppReportSource |
|
protected static class |
AppReportFetcher.FetchedAppReport |
| Constructor | 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 | Description |
|---|---|---|
java.lang.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 java.lang.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 java.io.IOException
java.io.IOExceptionpublic abstract AppReportFetcher.FetchedAppReport getApplicationReport(org.apache.hadoop.yarn.api.records.ApplicationId appId) throws org.apache.hadoop.yarn.exceptions.YarnException, java.io.IOException
appId - id of the application to get.org.apache.hadoop.yarn.exceptions.YarnException - on any error.java.io.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, java.io.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.java.io.IOException - connection exception.public abstract java.lang.String getRmAppPageUrlBase(org.apache.hadoop.yarn.api.records.ApplicationId appId)
throws java.io.IOException,
org.apache.hadoop.yarn.exceptions.YarnException
java.io.IOExceptionorg.apache.hadoop.yarn.exceptions.YarnExceptionpublic java.lang.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–2025 Apache Software Foundation. All rights reserved.