public class LeveldbRMStateStore extends RMStateStore
RMStateStore.RMDTSecretManagerState, RMStateStore.RMState, RMStateStore.RMStateStoreState| Modifier and Type | Field and Description |
|---|---|
static org.apache.commons.logging.Log |
LOG |
AM_CLIENT_TOKEN_MASTER_KEY_NAME, AM_RM_TOKEN_SERVICE, AMRMTOKEN_SECRET_MANAGER_ROOT, baseEpoch, DELEGATION_KEY_PREFIX, DELEGATION_TOKEN_PREFIX, DELEGATION_TOKEN_SEQUENCE_NUMBER_PREFIX, EPOCH_NODE, RESERVATION_SYSTEM_ROOT, resourceManager, RM_APP_ROOT, RM_DELEGATION_TOKENS_ROOT_ZNODE_NAME, RM_DT_SECRET_MANAGER_ROOT, rmStateStoreEventHandler, VERSION_NODE| Constructor and Description |
|---|
LeveldbRMStateStore() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
closeInternal()
Derived classes close themselves using this method.
|
void |
deleteStore()
Derived classes must implement this method to delete the state store
|
long |
getAndIncrementEpoch()
Get the current epoch of RM and increment the value.
|
protected org.apache.hadoop.yarn.server.records.Version |
getCurrentVersion()
Get the current version of the underlying state store.
|
protected void |
initInternal(org.apache.hadoop.conf.Configuration conf)
Derived classes initialize themselves using this method.
|
RMStateStore.RMState |
loadState()
Blocking API
The derived class must recover state from the store and return a new
RMState object populated with that state
This must not be called on the dispatcher thread
|
protected org.apache.hadoop.yarn.server.records.Version |
loadVersion()
Derived class use this method to load the version information from state
store.
|
protected org.iq80.leveldb.DB |
openDatabase() |
void |
removeApplication(org.apache.hadoop.yarn.api.records.ApplicationId removeAppId)
Derived classes must implement this method to remove application from the
state store
|
void |
removeApplicationAttemptInternal(org.apache.hadoop.yarn.api.records.ApplicationAttemptId attemptId)
Blocking API
Derived classes must implement this method to remove the state of specified
attempt.
|
protected void |
removeApplicationStateInternal(ApplicationStateData appState)
Blocking API
Derived classes must implement this method to remove the state of an
application and its attempts
|
protected void |
removeReservationState(String planName,
String reservationIdName)
Blocking API
Derived classes must implement this method to remove the state of
a reservation allocation.
|
protected void |
removeRMDelegationTokenState(org.apache.hadoop.yarn.security.client.RMDelegationTokenIdentifier tokenId)
Blocking API
Derived classes must implement this method to remove the state of RMDelegationToken
|
protected void |
removeRMDTMasterKeyState(org.apache.hadoop.security.token.delegation.DelegationKey masterKey)
Blocking API
Derived classes must implement this method to remove the state of
DelegationToken Master Key
|
protected void |
startInternal()
Derived classes start themselves using this method.
|
protected void |
storeApplicationAttemptStateInternal(org.apache.hadoop.yarn.api.records.ApplicationAttemptId attemptId,
ApplicationAttemptStateData attemptStateData)
Blocking API
Derived classes must implement this method to store the state of an
application attempt
|
protected void |
storeApplicationStateInternal(org.apache.hadoop.yarn.api.records.ApplicationId appId,
ApplicationStateData appStateData)
Blocking API
Derived classes must implement this method to store the state of an
application.
|
void |
storeOrUpdateAMRMTokenSecretManagerState(AMRMTokenSecretManagerState state,
boolean isUpdate)
Blocking API Derived classes must implement this method to store or update
the state of AMRMToken Master Key
|
protected void |
storeReservationState(org.apache.hadoop.yarn.proto.YarnProtos.ReservationAllocationStateProto reservationAllocation,
String planName,
String reservationIdName)
Blocking API
Derived classes must implement this method to store the state of
a reservation allocation.
|
protected void |
storeRMDelegationTokenState(org.apache.hadoop.yarn.security.client.RMDelegationTokenIdentifier tokenId,
Long renewDate)
Blocking API
Derived classes must implement this method to store the state of
RMDelegationToken and sequence number
|
protected void |
storeRMDTMasterKeyState(org.apache.hadoop.security.token.delegation.DelegationKey masterKey)
Blocking API
Derived classes must implement this method to store the state of
DelegationToken Master Key
|
protected void |
storeVersion()
Derived class use this method to store the version information.
|
protected void |
updateApplicationAttemptStateInternal(org.apache.hadoop.yarn.api.records.ApplicationAttemptId attemptId,
ApplicationAttemptStateData attemptStateData) |
protected void |
updateApplicationStateInternal(org.apache.hadoop.yarn.api.records.ApplicationId appId,
ApplicationStateData appStateData) |
protected void |
updateRMDelegationTokenState(org.apache.hadoop.yarn.security.client.RMDelegationTokenIdentifier tokenId,
Long renewDate)
Blocking API
Derived classes must implement this method to update the state of
RMDelegationToken and sequence number
|
checkVersion, getCredentialsFromAppAttempt, getRMStateStoreEventHandler, getRMStateStoreState, handleStoreEvent, isFencedState, notifyStoreOperationFailed, removeApplication, removeApplicationAttempt, removeReservation, removeRMDelegationToken, removeRMDTMasterKey, serviceInit, serviceStart, serviceStop, setResourceManager, setRMDispatcher, storeNewApplication, storeNewApplicationAttempt, storeNewReservation, storeOrUpdateAMRMTokenSecretManager, storeRMDelegationToken, storeRMDTMasterKey, updateApplicationAttemptState, updateApplicationState, updateApplicationState, updateApplicationStateSynchronously, updateFencedState, updateRMDelegationTokenclose, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStopprotected void initInternal(org.apache.hadoop.conf.Configuration conf)
throws Exception
RMStateStoreinitInternal in class RMStateStoreExceptionprotected void startInternal()
throws Exception
RMStateStorestartInternal in class RMStateStoreExceptionprotected void closeInternal()
throws Exception
RMStateStorecloseInternal in class RMStateStoreExceptionprotected org.apache.hadoop.yarn.server.records.Version loadVersion()
throws Exception
RMStateStoreloadVersion in class RMStateStoreExceptionprotected void storeVersion()
throws Exception
RMStateStorestoreVersion in class RMStateStoreExceptionprotected org.apache.hadoop.yarn.server.records.Version getCurrentVersion()
RMStateStoregetCurrentVersion in class RMStateStorepublic long getAndIncrementEpoch()
throws Exception
RMStateStoregetAndIncrementEpoch in class RMStateStoreExceptionpublic RMStateStore.RMState loadState() throws Exception
RMStateStoreloadState in class RMStateStoreExceptionprotected void storeApplicationStateInternal(org.apache.hadoop.yarn.api.records.ApplicationId appId,
ApplicationStateData appStateData)
throws IOException
RMStateStorestoreApplicationStateInternal in class RMStateStoreIOExceptionprotected void updateApplicationStateInternal(org.apache.hadoop.yarn.api.records.ApplicationId appId,
ApplicationStateData appStateData)
throws IOException
updateApplicationStateInternal in class RMStateStoreIOExceptionprotected void storeApplicationAttemptStateInternal(org.apache.hadoop.yarn.api.records.ApplicationAttemptId attemptId,
ApplicationAttemptStateData attemptStateData)
throws IOException
RMStateStorestoreApplicationAttemptStateInternal in class RMStateStoreIOExceptionprotected void updateApplicationAttemptStateInternal(org.apache.hadoop.yarn.api.records.ApplicationAttemptId attemptId,
ApplicationAttemptStateData attemptStateData)
throws IOException
updateApplicationAttemptStateInternal in class RMStateStoreIOExceptionpublic void removeApplicationAttemptInternal(org.apache.hadoop.yarn.api.records.ApplicationAttemptId attemptId)
throws IOException
RMStateStoreremoveApplicationAttemptInternal in class RMStateStoreIOExceptionprotected void removeApplicationStateInternal(ApplicationStateData appState) throws IOException
RMStateStoreremoveApplicationStateInternal in class RMStateStoreIOExceptionprotected void storeReservationState(org.apache.hadoop.yarn.proto.YarnProtos.ReservationAllocationStateProto reservationAllocation,
String planName,
String reservationIdName)
throws Exception
RMStateStorestoreReservationState in class RMStateStoreExceptionprotected void removeReservationState(String planName, String reservationIdName) throws Exception
RMStateStoreremoveReservationState in class RMStateStoreExceptionprotected void storeRMDelegationTokenState(org.apache.hadoop.yarn.security.client.RMDelegationTokenIdentifier tokenId,
Long renewDate)
throws IOException
RMStateStorestoreRMDelegationTokenState in class RMStateStoreIOExceptionprotected void updateRMDelegationTokenState(org.apache.hadoop.yarn.security.client.RMDelegationTokenIdentifier tokenId,
Long renewDate)
throws IOException
RMStateStoreupdateRMDelegationTokenState in class RMStateStoreIOExceptionprotected void removeRMDelegationTokenState(org.apache.hadoop.yarn.security.client.RMDelegationTokenIdentifier tokenId)
throws IOException
RMStateStoreremoveRMDelegationTokenState in class RMStateStoreIOExceptionprotected void storeRMDTMasterKeyState(org.apache.hadoop.security.token.delegation.DelegationKey masterKey)
throws IOException
RMStateStorestoreRMDTMasterKeyState in class RMStateStoreIOExceptionprotected void removeRMDTMasterKeyState(org.apache.hadoop.security.token.delegation.DelegationKey masterKey)
throws IOException
RMStateStoreremoveRMDTMasterKeyState in class RMStateStoreIOExceptionpublic void storeOrUpdateAMRMTokenSecretManagerState(AMRMTokenSecretManagerState state, boolean isUpdate)
RMStateStorestoreOrUpdateAMRMTokenSecretManagerState in class RMStateStorepublic void deleteStore()
throws IOException
RMStateStoredeleteStore in class RMStateStoreIOExceptionpublic void removeApplication(org.apache.hadoop.yarn.api.records.ApplicationId removeAppId)
throws IOException
RMStateStoreremoveApplication in class RMStateStoreIOExceptionCopyright © 2022 Apache Software Foundation. All rights reserved.