Class DefaultAppReportFetcher
java.lang.Object
org.apache.hadoop.yarn.server.webproxy.AppReportFetcher
org.apache.hadoop.yarn.server.webproxy.DefaultAppReportFetcher
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.yarn.server.webproxy.AppReportFetcher
AppReportFetcher.AppReportSource, AppReportFetcher.FetchedAppReport -
Constructor Summary
ConstructorsConstructorDescriptionDefaultAppReportFetcher(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. -
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) voidstop()Methods inherited from class org.apache.hadoop.yarn.server.webproxy.AppReportFetcher
getAhsAppPageUrlBase, getAHSProxy, getApplicationReport, getConf, setHistoryManager
-
Constructor Details
-
DefaultAppReportFetcher
public DefaultAppReportFetcher(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.
-
DefaultAppReportFetcher
public 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. Also create a remote connection to Application History Server if it is enabled.- Parameters:
conf- the configuration to useapplicationsManager- what to use to get the RM reports.
-
-
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 org.apache.hadoop.yarn.exceptions.YarnException, IOException - Specified by:
getRmAppPageUrlBasein classAppReportFetcher- Throws:
org.apache.hadoop.yarn.exceptions.YarnExceptionIOException
-
stop
public void stop()- Overrides:
stopin classAppReportFetcher
-