public class AppReportFetcher extends Object
Constructor and Description |
---|
AppReportFetcher(org.apache.hadoop.conf.Configuration conf)
Create a new Connection to the RM/Application History Server
to fetch Application reports.
|
AppReportFetcher(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 |
---|---|
protected org.apache.hadoop.yarn.api.ApplicationHistoryProtocol |
getAHSProxy(org.apache.hadoop.conf.Configuration configuration) |
org.apache.hadoop.yarn.server.webproxy.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.
|
void |
stop() |
public AppReportFetcher(org.apache.hadoop.conf.Configuration conf)
conf
- the conf to use to know where the RM is.public AppReportFetcher(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.protected org.apache.hadoop.yarn.api.ApplicationHistoryProtocol getAHSProxy(org.apache.hadoop.conf.Configuration configuration) throws IOException
IOException
public org.apache.hadoop.yarn.server.webproxy.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.IOException
public void stop()
Copyright © 2017 Apache Software Foundation. All Rights Reserved.