public class DefaultAppReportFetcher extends AppReportFetcher
AppReportFetcher.AppReportSource, AppReportFetcher.FetchedAppReport
Constructor and 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 and 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.
|
String |
getRmAppPageUrlBase(org.apache.hadoop.yarn.api.records.ApplicationId appId) |
void |
stop() |
getAhsAppPageUrlBase, getAHSProxy, getApplicationReport, getConf, setHistoryManager
public 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, IOException
getApplicationReport
in class AppReportFetcher
appId
- id of the application to get.org.apache.hadoop.yarn.exceptions.YarnException
- on any error.IOException
- connection exception.public String getRmAppPageUrlBase(org.apache.hadoop.yarn.api.records.ApplicationId appId) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException
getRmAppPageUrlBase
in class AppReportFetcher
org.apache.hadoop.yarn.exceptions.YarnException
IOException
public void stop()
stop
in class AppReportFetcher
Copyright © 2008–2024 Apache Software Foundation. All rights reserved.