Class JobHistoryServer

java.lang.Object
org.apache.hadoop.service.AbstractService
org.apache.hadoop.service.CompositeService
org.apache.hadoop.mapreduce.v2.hs.JobHistoryServer
All Implemented Interfaces:
Closeable, AutoCloseable, org.apache.hadoop.service.Service

public class JobHistoryServer extends org.apache.hadoop.service.CompositeService
JobHistoryServer is responsible for servicing all job history related requests from client.
  • Field Details

    • SHUTDOWN_HOOK_PRIORITY

      public static final int SHUTDOWN_HOOK_PRIORITY
      Priority of the JobHistoryServer shutdown hook.
      See Also:
    • historyServerTimeStamp

      public static final long historyServerTimeStamp
    • jhsDTSecretManager

      protected JHSDelegationTokenSecretManager jhsDTSecretManager
  • Constructor Details

    • JobHistoryServer

      public JobHistoryServer()
  • Method Details

    • serviceInit

      protected void serviceInit(org.apache.hadoop.conf.Configuration conf) throws Exception
      Overrides:
      serviceInit in class org.apache.hadoop.service.CompositeService
      Throws:
      Exception
    • createHistoryClientService

      @VisibleForTesting protected HistoryClientService createHistoryClientService()
    • createJHSSecretManager

      protected JHSDelegationTokenSecretManager createJHSSecretManager(org.apache.hadoop.conf.Configuration conf, HistoryServerStateStoreService store)
    • createStateStore

      protected HistoryServerStateStoreService createStateStore(org.apache.hadoop.conf.Configuration conf)
    • doSecureLogin

      protected void doSecureLogin(org.apache.hadoop.conf.Configuration conf) throws IOException
      Throws:
      IOException
    • getBindAddress

      public static InetSocketAddress getBindAddress(org.apache.hadoop.conf.Configuration conf)
      Retrieve JHS bind address from configuration
      Parameters:
      conf -
      Returns:
      InetSocketAddress
    • serviceStart

      protected void serviceStart() throws Exception
      Overrides:
      serviceStart in class org.apache.hadoop.service.CompositeService
      Throws:
      Exception
    • serviceStop

      protected void serviceStop() throws Exception
      Overrides:
      serviceStop in class org.apache.hadoop.service.CompositeService
      Throws:
      Exception
    • getClientService

      @Private public HistoryClientService getClientService()
    • main

      public static void main(String[] args)