@InterfaceAudience.Private @InterfaceStability.Unstable public class HistoryServerFileSystemStateStoreService extends HistoryServerStateStoreService
HistoryServerStateStoreService.HistoryServerState| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
LOG |
| Constructor and Description |
|---|
HistoryServerFileSystemStateStoreService() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
closeStorage()
Implementation-specific shutdown.
|
protected void |
initStorage(org.apache.hadoop.conf.Configuration conf)
Implementation-specific initialization.
|
HistoryServerStateStoreService.HistoryServerState |
loadState()
Load the history server state from the state storage.
|
void |
removeToken(org.apache.hadoop.mapreduce.v2.api.MRDelegationTokenIdentifier tokenId)
Blocking method to remove a delegation token from the state storage.
|
void |
removeTokenMasterKey(org.apache.hadoop.security.token.delegation.DelegationKey key)
Blocking method to remove a delegation token master key.
|
protected void |
startStorage()
Implementation-specific startup.
|
void |
storeToken(org.apache.hadoop.mapreduce.v2.api.MRDelegationTokenIdentifier tokenId,
Long renewDate)
Blocking method to store a delegation token along with the current token
sequence number to the state storage.
|
void |
storeTokenMasterKey(org.apache.hadoop.security.token.delegation.DelegationKey key)
Blocking method to store a delegation token master key.
|
void |
updateToken(org.apache.hadoop.mapreduce.v2.api.MRDelegationTokenIdentifier tokenId,
Long renewDate)
Blocking method to update the expiration of a delegation token
in the state storage.
|
serviceInit, serviceStart, serviceStopclose, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStoppublic HistoryServerFileSystemStateStoreService()
protected void initStorage(org.apache.hadoop.conf.Configuration conf)
throws IOException
HistoryServerStateStoreServiceinitStorage in class HistoryServerStateStoreServiceconf - the configurationIOExceptionprotected void startStorage()
throws IOException
HistoryServerStateStoreServicestartStorage in class HistoryServerStateStoreServiceIOExceptionprotected void closeStorage()
throws IOException
HistoryServerStateStoreServicecloseStorage in class HistoryServerStateStoreServiceIOExceptionpublic HistoryServerStateStoreService.HistoryServerState loadState() throws IOException
HistoryServerStateStoreServiceloadState in class HistoryServerStateStoreServiceIOExceptionpublic void storeToken(org.apache.hadoop.mapreduce.v2.api.MRDelegationTokenIdentifier tokenId,
Long renewDate)
throws IOException
HistoryServerStateStoreServicestoreToken in class HistoryServerStateStoreServicetokenId - the token to storerenewDate - the token renewal deadlineIOExceptionpublic void updateToken(org.apache.hadoop.mapreduce.v2.api.MRDelegationTokenIdentifier tokenId,
Long renewDate)
throws IOException
HistoryServerStateStoreServiceupdateToken in class HistoryServerStateStoreServicetokenId - the token to updaterenewDate - the new token renewal deadlineIOExceptionpublic void removeToken(org.apache.hadoop.mapreduce.v2.api.MRDelegationTokenIdentifier tokenId)
throws IOException
HistoryServerStateStoreServiceremoveToken in class HistoryServerStateStoreServicetokenId - the token to removeIOExceptionpublic void storeTokenMasterKey(org.apache.hadoop.security.token.delegation.DelegationKey key)
throws IOException
HistoryServerStateStoreServicestoreTokenMasterKey in class HistoryServerStateStoreServicekey - the master key to storeIOExceptionpublic void removeTokenMasterKey(org.apache.hadoop.security.token.delegation.DelegationKey key)
throws IOException
HistoryServerStateStoreServiceremoveTokenMasterKey in class HistoryServerStateStoreServicekey - the master key to removeIOExceptionCopyright © 2008–2023 Apache Software Foundation. All rights reserved.