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.-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.service.CompositeService
org.apache.hadoop.service.CompositeService.CompositeServiceShutdownHookNested classes/interfaces inherited from interface org.apache.hadoop.service.Service
org.apache.hadoop.service.Service.STATE -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longprotected JHSDelegationTokenSecretManagerstatic final intPriority of the JobHistoryServer shutdown hook.Fields inherited from class org.apache.hadoop.service.CompositeService
STOP_ONLY_STARTED_SERVICES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected HistoryClientServiceprotected JHSDelegationTokenSecretManagercreateJHSSecretManager(org.apache.hadoop.conf.Configuration conf, HistoryServerStateStoreService store) protected HistoryServerStateStoreServicecreateStateStore(org.apache.hadoop.conf.Configuration conf) protected voiddoSecureLogin(org.apache.hadoop.conf.Configuration conf) static InetSocketAddressgetBindAddress(org.apache.hadoop.conf.Configuration conf) Retrieve JHS bind address from configurationstatic voidprotected voidserviceInit(org.apache.hadoop.conf.Configuration conf) protected voidprotected voidMethods inherited from class org.apache.hadoop.service.CompositeService
addIfService, addService, getServices, removeServiceMethods 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
-
Field Details
-
SHUTDOWN_HOOK_PRIORITY
public static final int SHUTDOWN_HOOK_PRIORITYPriority of the JobHistoryServer shutdown hook.- See Also:
-
historyServerTimeStamp
public static final long historyServerTimeStamp -
jhsDTSecretManager
-
-
Constructor Details
-
JobHistoryServer
public JobHistoryServer()
-
-
Method Details
-
serviceInit
- Overrides:
serviceInitin classorg.apache.hadoop.service.CompositeService- Throws:
Exception
-
createHistoryClientService
-
createJHSSecretManager
protected JHSDelegationTokenSecretManager createJHSSecretManager(org.apache.hadoop.conf.Configuration conf, HistoryServerStateStoreService store) -
createStateStore
protected HistoryServerStateStoreService createStateStore(org.apache.hadoop.conf.Configuration conf) -
doSecureLogin
- Throws:
IOException
-
getBindAddress
Retrieve JHS bind address from configuration- Parameters:
conf-- Returns:
- InetSocketAddress
-
serviceStart
- Overrides:
serviceStartin classorg.apache.hadoop.service.CompositeService- Throws:
Exception
-
serviceStop
- Overrides:
serviceStopin classorg.apache.hadoop.service.CompositeService- Throws:
Exception
-
getClientService
-
main
-