public class DefaultAppReportFetcher extends AppReportFetcher
AppReportFetcher.AppReportSource, AppReportFetcher.FetchedAppReport| Constructor | Description |
|---|---|
DefaultAppReportFetcher(org.apache.hadoop.conf.Configuration conf) |
Create a new Connection to the RM/Application History Server
to fetch Application reports.
|
DefaultAppReportFetcher(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.yarn.api.ApplicationClientProtocol applicationsManager) |
Create a direct connection to RM instead of a remote connection when
the proxy is running as part of the RM.
|
| Modifier and Type | Method | Description |
|---|---|---|
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.
|
java.lang.String |
getRmAppPageUrlBase(org.apache.hadoop.yarn.api.records.ApplicationId appId) |
|
void |
stop() |
getAhsAppPageUrlBase, getAHSProxy, getApplicationReport, getConf, setHistoryManagerpublic DefaultAppReportFetcher(org.apache.hadoop.conf.Configuration conf)
conf - the conf to use to know where the RM is.public DefaultAppReportFetcher(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.yarn.api.ApplicationClientProtocol applicationsManager)
conf - the configuration to useapplicationsManager - what to use to get the RM reports.public AppReportFetcher.FetchedAppReport getApplicationReport(org.apache.hadoop.yarn.api.records.ApplicationId appId) throws org.apache.hadoop.yarn.exceptions.YarnException, java.io.IOException
getApplicationReport in class AppReportFetcherappId - id of the application to get.org.apache.hadoop.yarn.exceptions.YarnException - on any error.java.io.IOException - connection exception.public java.lang.String getRmAppPageUrlBase(org.apache.hadoop.yarn.api.records.ApplicationId appId)
throws org.apache.hadoop.yarn.exceptions.YarnException,
java.io.IOException
getRmAppPageUrlBase in class AppReportFetcherorg.apache.hadoop.yarn.exceptions.YarnExceptionjava.io.IOExceptionpublic void stop()
stop in class AppReportFetcherCopyright © 2008–2025 Apache Software Foundation. All rights reserved.