public class FedAppReportFetcher extends AppReportFetcher
AppReportFetcher.AppReportSource, AppReportFetcher.FetchedAppReport
Constructor and Description |
---|
FedAppReportFetcher(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 |
---|---|
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 |
registerSubCluster(org.apache.hadoop.yarn.server.federation.store.records.SubClusterInfo info,
org.apache.hadoop.yarn.api.ApplicationClientProtocol proxy) |
void |
stop() |
getAhsAppPageUrlBase, getAHSProxy, getApplicationReport, getConf, setHistoryManager
public FedAppReportFetcher(org.apache.hadoop.conf.Configuration conf)
conf
- the conf to use to know where the RM is.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 IOException, org.apache.hadoop.yarn.exceptions.YarnException
getRmAppPageUrlBase
in class AppReportFetcher
IOException
org.apache.hadoop.yarn.exceptions.YarnException
public void stop()
stop
in class AppReportFetcher
@VisibleForTesting public void registerSubCluster(org.apache.hadoop.yarn.server.federation.store.records.SubClusterInfo info, org.apache.hadoop.yarn.api.ApplicationClientProtocol proxy)
Copyright © 2008–2024 Apache Software Foundation. All rights reserved.