org.apache.hadoop.mapreduce.v2.hs
Class JobHistoryServer

java.lang.Object
  extended by org.apache.hadoop.service.AbstractService
      extended by org.apache.hadoop.service.CompositeService
          extended by org.apache.hadoop.mapreduce.v2.hs.JobHistoryServer
All Implemented Interfaces:
Closeable, 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.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.hadoop.service.CompositeService
org.apache.hadoop.service.CompositeService.CompositeServiceShutdownHook
 
Nested classes/interfaces inherited from interface org.apache.hadoop.service.Service
org.apache.hadoop.service.Service.STATE
 
Field Summary
protected  HistoryContext historyContext
           
static long historyServerTimeStamp
           
protected  JHSDelegationTokenSecretManager jhsDTSecretManager
           
static int SHUTDOWN_HOOK_PRIORITY
          Priority of the JobHistoryServer shutdown hook.
 
Fields inherited from class org.apache.hadoop.service.CompositeService
STOP_ONLY_STARTED_SERVICES
 
Constructor Summary
JobHistoryServer()
           
 
Method Summary
protected  HistoryClientService createHistoryClientService()
           
protected  JHSDelegationTokenSecretManager createJHSSecretManager(org.apache.hadoop.conf.Configuration conf, HistoryServerStateStoreService store)
           
protected  HistoryServerStateStoreService createStateStore(org.apache.hadoop.conf.Configuration conf)
           
protected  void doSecureLogin(org.apache.hadoop.conf.Configuration conf)
           
static InetSocketAddress getBindAddress(org.apache.hadoop.conf.Configuration conf)
          Retrieve JHS bind address from configuration
 HistoryClientService getClientService()
           
static void main(String[] args)
           
protected  void serviceInit(org.apache.hadoop.conf.Configuration conf)
           
protected  void serviceStart()
           
protected  void serviceStop()
           
 
Methods inherited from class org.apache.hadoop.service.CompositeService
addIfService, addService, getServices, removeService
 
Methods inherited from class org.apache.hadoop.service.AbstractService
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SHUTDOWN_HOOK_PRIORITY

public static final int SHUTDOWN_HOOK_PRIORITY
Priority of the JobHistoryServer shutdown hook.

See Also:
Constant Field Values

historyServerTimeStamp

public static final long historyServerTimeStamp

historyContext

protected HistoryContext historyContext

jhsDTSecretManager

protected JHSDelegationTokenSecretManager jhsDTSecretManager
Constructor Detail

JobHistoryServer

public JobHistoryServer()
Method Detail

serviceInit

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

createHistoryClientService

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

@InterfaceAudience.Private
public HistoryClientService getClientService()

main

public static void main(String[] args)


Copyright © 2014 Apache Software Foundation. All Rights Reserved.