Class FedAppReportFetcher
java.lang.Object
org.apache.hadoop.yarn.server.webproxy.AppReportFetcher
org.apache.hadoop.yarn.server.webproxy.FedAppReportFetcher
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.yarn.server.webproxy.AppReportFetcher
AppReportFetcher.AppReportSource, AppReportFetcher.FetchedAppReport -
Constructor Summary
ConstructorsConstructorDescriptionFedAppReportFetcher(org.apache.hadoop.conf.Configuration conf) Create a new Connection to the RM/Application History Server to fetch Application reports. -
Method Summary
Modifier and TypeMethodDescriptiongetApplicationReport(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.getRmAppPageUrlBase(org.apache.hadoop.yarn.api.records.ApplicationId appId) voidregisterSubCluster(org.apache.hadoop.yarn.server.federation.store.records.SubClusterInfo info, org.apache.hadoop.yarn.api.ApplicationClientProtocol proxy) voidstop()Methods inherited from class org.apache.hadoop.yarn.server.webproxy.AppReportFetcher
getAhsAppPageUrlBase, getAHSProxy, getApplicationReport, getConf, setHistoryManager
-
Constructor Details
-
FedAppReportFetcher
public FedAppReportFetcher(org.apache.hadoop.conf.Configuration conf) Create a new Connection to the RM/Application History Server to fetch Application reports.- Parameters:
conf- the conf to use to know where the RM is.
-
-
Method Details
-
getApplicationReport
public AppReportFetcher.FetchedAppReport getApplicationReport(org.apache.hadoop.yarn.api.records.ApplicationId appId) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException 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.- Specified by:
getApplicationReportin classAppReportFetcher- Parameters:
appId- id of the application to get.- Returns:
- the ApplicationReport for the appId.
- Throws:
org.apache.hadoop.yarn.exceptions.YarnException- on any error.IOException- connection exception.
-
getRmAppPageUrlBase
public String getRmAppPageUrlBase(org.apache.hadoop.yarn.api.records.ApplicationId appId) throws IOException, org.apache.hadoop.yarn.exceptions.YarnException - Specified by:
getRmAppPageUrlBasein classAppReportFetcher- Throws:
IOExceptionorg.apache.hadoop.yarn.exceptions.YarnException
-
stop
public void stop()- Overrides:
stopin classAppReportFetcher
-
registerSubCluster
@VisibleForTesting public void registerSubCluster(org.apache.hadoop.yarn.server.federation.store.records.SubClusterInfo info, org.apache.hadoop.yarn.api.ApplicationClientProtocol proxy)
-