Class FedAppReportFetcher

java.lang.Object
org.apache.hadoop.yarn.server.webproxy.AppReportFetcher
org.apache.hadoop.yarn.server.webproxy.FedAppReportFetcher

public class FedAppReportFetcher extends AppReportFetcher
  • 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:
      getApplicationReport in class AppReportFetcher
      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:
      getRmAppPageUrlBase in class AppReportFetcher
      Throws:
      IOException
      org.apache.hadoop.yarn.exceptions.YarnException
    • stop

      public void stop()
      Overrides:
      stop in class AppReportFetcher
    • registerSubCluster

      @VisibleForTesting public void registerSubCluster(org.apache.hadoop.yarn.server.federation.store.records.SubClusterInfo info, org.apache.hadoop.yarn.api.ApplicationClientProtocol proxy)