Class NMNullStateStoreService
java.lang.Object
org.apache.hadoop.service.AbstractService
org.apache.hadoop.yarn.server.nodemanager.recovery.NMStateStoreService
org.apache.hadoop.yarn.server.nodemanager.recovery.NMNullStateStoreService
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.hadoop.service.Service
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.yarn.server.nodemanager.recovery.NMStateStoreService
NMStateStoreService.LocalResourceTrackerState, NMStateStoreService.RecoveredAMRMProxyState, NMStateStoreService.RecoveredApplicationsState, NMStateStoreService.RecoveredContainerState, NMStateStoreService.RecoveredContainerStatus, NMStateStoreService.RecoveredContainerTokensState, NMStateStoreService.RecoveredContainerType, NMStateStoreService.RecoveredDeletionServiceState, NMStateStoreService.RecoveredLocalizationState, NMStateStoreService.RecoveredLogDeleterState, NMStateStoreService.RecoveredNMTokensState, NMStateStoreService.RecoveredUserResourcesNested classes/interfaces inherited from interface org.apache.hadoop.service.Service
org.apache.hadoop.service.Service.STATE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanprotected voidvoidfinishResourceLocalization(String user, org.apache.hadoop.yarn.api.records.ApplicationId appId, org.apache.hadoop.yarn.proto.YarnServerNodemanagerRecoveryProtos.LocalizedResourceProto proto) Record the completion of a resource localizationget the Recovered Container State Iteratorprotected voidinitStorage(org.apache.hadoop.conf.Configuration conf) Load the state of AMRMProxy.Load the state of applications.Load the state of container tokensLoad the state of the deletion serviceLoad the state of localized resourcesLoad the state of log deletersLoad the state of NM tokensvoidremoveAMRMProxyAppContext(org.apache.hadoop.yarn.api.records.ApplicationAttemptId attempt) Remove the entire context map for an application attempt in AMRMProxyService.voidremoveAMRMProxyAppContextEntry(org.apache.hadoop.yarn.api.records.ApplicationAttemptId attempt, String key) Remove a context entry for an application attempt in AMRMProxyService.voidremoveApplication(org.apache.hadoop.yarn.api.records.ApplicationId appId) Remove records corresponding to an applicationvoidremoveContainer(org.apache.hadoop.yarn.api.records.ContainerId containerId) Remove records corresponding to a containervoidremoveContainerPaused(org.apache.hadoop.yarn.api.records.ContainerId containerId) Record that a container has been resumed at the NM by removing the fact that it has be paused.voidremoveContainerToken(org.apache.hadoop.yarn.api.records.ContainerId containerId) Remove records for a container tokenvoidremoveDeletionTask(int taskId) Remove records corresponding to a deletion taskvoidremoveLocalizedResource(String user, org.apache.hadoop.yarn.api.records.ApplicationId appId, org.apache.hadoop.fs.Path localPath) Remove records related to a resource localizationvoidremoveLogDeleter(org.apache.hadoop.yarn.api.records.ApplicationId appId) Remove the state of a log deletervoidremoveNMTokenApplicationMasterKey(org.apache.hadoop.yarn.api.records.ApplicationAttemptId attempt) Remove a master key corresponding to an applicationvoidstartResourceLocalization(String user, org.apache.hadoop.yarn.api.records.ApplicationId appId, org.apache.hadoop.yarn.proto.YarnProtos.LocalResourceProto proto, org.apache.hadoop.fs.Path localPath) Record the start of localization for a resourceprotected voidvoidstoreAMRMProxyAppContextEntry(org.apache.hadoop.yarn.api.records.ApplicationAttemptId attempt, String key, byte[] data) Add a context entry for an application attempt in AMRMProxyService.voidstoreAMRMProxyCurrentMasterKey(org.apache.hadoop.yarn.server.api.records.MasterKey key) Record the current AMRMProxyTokenSecretManager master key.voidstoreAMRMProxyNextMasterKey(org.apache.hadoop.yarn.server.api.records.MasterKey key) Record the next AMRMProxyTokenSecretManager master key.voidstoreApplication(org.apache.hadoop.yarn.api.records.ApplicationId appId, org.apache.hadoop.yarn.proto.YarnServerNodemanagerRecoveryProtos.ContainerManagerApplicationProto p) Record the start of an applicationvoidstoreAssignedResources(Container container, String resourceType, List<Serializable> assignedResources) Store the assigned resources to a container.voidstoreContainer(org.apache.hadoop.yarn.api.records.ContainerId containerId, int version, long startTime, org.apache.hadoop.yarn.api.protocolrecords.StartContainerRequest startRequest) Record a container start requestvoidstoreContainerCompleted(org.apache.hadoop.yarn.api.records.ContainerId containerId, int exitCode) Record that a container has completedvoidstoreContainerDiagnostics(org.apache.hadoop.yarn.api.records.ContainerId containerId, StringBuilder diagnostics) Record diagnostics for a containervoidstoreContainerKilled(org.apache.hadoop.yarn.api.records.ContainerId containerId) Record a request to kill a containervoidstoreContainerLaunched(org.apache.hadoop.yarn.api.records.ContainerId containerId) Record that a container has been launchedvoidstoreContainerLogDir(org.apache.hadoop.yarn.api.records.ContainerId containerId, String logDir) Record log directory for a container.voidstoreContainerPaused(org.apache.hadoop.yarn.api.records.ContainerId containerId) Record that a container has been paused at the NM.voidstoreContainerQueued(org.apache.hadoop.yarn.api.records.ContainerId containerId) Record that a container has been queued at the NMvoidstoreContainerRemainingRetryAttempts(org.apache.hadoop.yarn.api.records.ContainerId containerId, int remainingRetryAttempts) Record remaining retry attempts for a container.voidstoreContainerRestartTimes(org.apache.hadoop.yarn.api.records.ContainerId containerId, List<Long> restartTimes) Record restart times for a container.voidstoreContainerToken(org.apache.hadoop.yarn.api.records.ContainerId containerId, Long expirationTime) Record the expiration time for a container tokenvoidstoreContainerTokenCurrentMasterKey(org.apache.hadoop.yarn.server.api.records.MasterKey key) Record the current container token master keyvoidstoreContainerTokenPreviousMasterKey(org.apache.hadoop.yarn.server.api.records.MasterKey key) Record the previous container token master keyvoidstoreContainerUpdateToken(org.apache.hadoop.yarn.api.records.ContainerId containerId, org.apache.hadoop.yarn.security.ContainerTokenIdentifier containerTokenIdentifier) Record that a container has been updatedvoidstoreContainerWorkDir(org.apache.hadoop.yarn.api.records.ContainerId containerId, String workDir) Record working directory for a container.voidstoreDeletionTask(int taskId, org.apache.hadoop.yarn.proto.YarnServerNodemanagerRecoveryProtos.DeletionServiceDeleteTaskProto taskProto) Record a deletion taskvoidstoreLogDeleter(org.apache.hadoop.yarn.api.records.ApplicationId appId, org.apache.hadoop.yarn.proto.YarnServerNodemanagerRecoveryProtos.LogDeleterProto proto) Store the state of a log deletervoidstoreNMTokenApplicationMasterKey(org.apache.hadoop.yarn.api.records.ApplicationAttemptId attempt, org.apache.hadoop.yarn.server.api.records.MasterKey key) Record a master key corresponding to an applicationvoidstoreNMTokenCurrentMasterKey(org.apache.hadoop.yarn.server.api.records.MasterKey key) Record the current NM token master keyvoidstoreNMTokenPreviousMasterKey(org.apache.hadoop.yarn.server.api.records.MasterKey key) Record the previous NM token master keyMethods inherited from class org.apache.hadoop.yarn.server.nodemanager.recovery.NMStateStoreService
getNodeStatusUpdater, isNewlyCreated, releaseAssignedResources, serviceInit, serviceStart, serviceStop, setNodeStatusUpdater, updateContainerResourceMappingMethods 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
-
Constructor Details
-
NMNullStateStoreService
public NMNullStateStoreService()
-
-
Method Details
-
canRecover
public boolean canRecover()- Overrides:
canRecoverin classNMStateStoreService
-
loadApplicationsState
Description copied from class:NMStateStoreServiceLoad the state of applications.- Specified by:
loadApplicationsStatein classNMStateStoreService- Returns:
- recovered state for applications.
- Throws:
IOException- IO Exception.
-
storeApplication
public void storeApplication(org.apache.hadoop.yarn.api.records.ApplicationId appId, org.apache.hadoop.yarn.proto.YarnServerNodemanagerRecoveryProtos.ContainerManagerApplicationProto p) throws IOException Description copied from class:NMStateStoreServiceRecord the start of an application- Specified by:
storeApplicationin classNMStateStoreService- Parameters:
appId- the application IDp- state to store for the application- Throws:
IOException
-
removeApplication
public void removeApplication(org.apache.hadoop.yarn.api.records.ApplicationId appId) throws IOException Description copied from class:NMStateStoreServiceRemove records corresponding to an application- Specified by:
removeApplicationin classNMStateStoreService- Parameters:
appId- the application ID- Throws:
IOException
-
getContainerStateIterator
public RecoveryIterator<NMStateStoreService.RecoveredContainerState> getContainerStateIterator() throws IOExceptionDescription copied from class:NMStateStoreServiceget the Recovered Container State Iterator- Specified by:
getContainerStateIteratorin classNMStateStoreService- Returns:
- recovery iterator
- Throws:
IOException
-
storeContainer
public void storeContainer(org.apache.hadoop.yarn.api.records.ContainerId containerId, int version, long startTime, org.apache.hadoop.yarn.api.protocolrecords.StartContainerRequest startRequest) Description copied from class:NMStateStoreServiceRecord a container start request- Specified by:
storeContainerin classNMStateStoreService- Parameters:
containerId- the container IDversion- the container VersionstartTime- container start timestartRequest- the container start request
-
storeContainerQueued
public void storeContainerQueued(org.apache.hadoop.yarn.api.records.ContainerId containerId) throws IOException Description copied from class:NMStateStoreServiceRecord that a container has been queued at the NM- Specified by:
storeContainerQueuedin classNMStateStoreService- Parameters:
containerId- the container ID- Throws:
IOException
-
storeContainerPaused
public void storeContainerPaused(org.apache.hadoop.yarn.api.records.ContainerId containerId) throws IOException Description copied from class:NMStateStoreServiceRecord that a container has been paused at the NM.- Specified by:
storeContainerPausedin classNMStateStoreService- Parameters:
containerId- the container ID.- Throws:
IOException- IO Exception.
-
removeContainerPaused
public void removeContainerPaused(org.apache.hadoop.yarn.api.records.ContainerId containerId) throws IOException Description copied from class:NMStateStoreServiceRecord that a container has been resumed at the NM by removing the fact that it has be paused.- Specified by:
removeContainerPausedin classNMStateStoreService- Parameters:
containerId- the container ID.- Throws:
IOException- IO Exception.
-
storeContainerDiagnostics
public void storeContainerDiagnostics(org.apache.hadoop.yarn.api.records.ContainerId containerId, StringBuilder diagnostics) throws IOException Description copied from class:NMStateStoreServiceRecord diagnostics for a container- Specified by:
storeContainerDiagnosticsin classNMStateStoreService- Parameters:
containerId- the container IDdiagnostics- the container diagnostics- Throws:
IOException
-
storeContainerLaunched
public void storeContainerLaunched(org.apache.hadoop.yarn.api.records.ContainerId containerId) throws IOException Description copied from class:NMStateStoreServiceRecord that a container has been launched- Specified by:
storeContainerLaunchedin classNMStateStoreService- Parameters:
containerId- the container ID- Throws:
IOException
-
storeContainerUpdateToken
public void storeContainerUpdateToken(org.apache.hadoop.yarn.api.records.ContainerId containerId, org.apache.hadoop.yarn.security.ContainerTokenIdentifier containerTokenIdentifier) throws IOException Description copied from class:NMStateStoreServiceRecord that a container has been updated- Specified by:
storeContainerUpdateTokenin classNMStateStoreService- Parameters:
containerId- the container IDcontainerTokenIdentifier- container token identifier- Throws:
IOException
-
storeContainerKilled
public void storeContainerKilled(org.apache.hadoop.yarn.api.records.ContainerId containerId) throws IOException Description copied from class:NMStateStoreServiceRecord a request to kill a container- Specified by:
storeContainerKilledin classNMStateStoreService- Parameters:
containerId- the container ID- Throws:
IOException
-
storeContainerCompleted
public void storeContainerCompleted(org.apache.hadoop.yarn.api.records.ContainerId containerId, int exitCode) throws IOException Description copied from class:NMStateStoreServiceRecord that a container has completed- Specified by:
storeContainerCompletedin classNMStateStoreService- Parameters:
containerId- the container IDexitCode- the exit code from the container- Throws:
IOException
-
storeContainerRemainingRetryAttempts
public void storeContainerRemainingRetryAttempts(org.apache.hadoop.yarn.api.records.ContainerId containerId, int remainingRetryAttempts) throws IOException Description copied from class:NMStateStoreServiceRecord remaining retry attempts for a container.- Specified by:
storeContainerRemainingRetryAttemptsin classNMStateStoreService- Parameters:
containerId- the container IDremainingRetryAttempts- the remain retry times when container fails to run- Throws:
IOException
-
storeContainerRestartTimes
public void storeContainerRestartTimes(org.apache.hadoop.yarn.api.records.ContainerId containerId, List<Long> restartTimes) throws IOException Description copied from class:NMStateStoreServiceRecord restart times for a container.- Specified by:
storeContainerRestartTimesin classNMStateStoreService- Throws:
IOException
-
storeContainerWorkDir
public void storeContainerWorkDir(org.apache.hadoop.yarn.api.records.ContainerId containerId, String workDir) throws IOException Description copied from class:NMStateStoreServiceRecord working directory for a container.- Specified by:
storeContainerWorkDirin classNMStateStoreService- Parameters:
containerId- the container IDworkDir- the working directory- Throws:
IOException
-
storeContainerLogDir
public void storeContainerLogDir(org.apache.hadoop.yarn.api.records.ContainerId containerId, String logDir) throws IOException Description copied from class:NMStateStoreServiceRecord log directory for a container.- Specified by:
storeContainerLogDirin classNMStateStoreService- Parameters:
containerId- the container IDlogDir- the log directory- Throws:
IOException
-
removeContainer
public void removeContainer(org.apache.hadoop.yarn.api.records.ContainerId containerId) throws IOException Description copied from class:NMStateStoreServiceRemove records corresponding to a container- Specified by:
removeContainerin classNMStateStoreService- Parameters:
containerId- the container ID- Throws:
IOException
-
loadLocalizationState
Description copied from class:NMStateStoreServiceLoad the state of localized resources- Specified by:
loadLocalizationStatein classNMStateStoreService- Returns:
- recovered localized resource state
- Throws:
IOException
-
startResourceLocalization
public void startResourceLocalization(String user, org.apache.hadoop.yarn.api.records.ApplicationId appId, org.apache.hadoop.yarn.proto.YarnProtos.LocalResourceProto proto, org.apache.hadoop.fs.Path localPath) throws IOException Description copied from class:NMStateStoreServiceRecord the start of localization for a resource- Specified by:
startResourceLocalizationin classNMStateStoreService- Parameters:
user- the username or null if the resource is publicappId- the application ID if the resource is app-specific or nullproto- the resource requestlocalPath- local filesystem path where the resource will be stored- Throws:
IOException
-
finishResourceLocalization
public void finishResourceLocalization(String user, org.apache.hadoop.yarn.api.records.ApplicationId appId, org.apache.hadoop.yarn.proto.YarnServerNodemanagerRecoveryProtos.LocalizedResourceProto proto) throws IOException Description copied from class:NMStateStoreServiceRecord the completion of a resource localization- Specified by:
finishResourceLocalizationin classNMStateStoreService- Parameters:
user- the username or null if the resource is publicappId- the application ID if the resource is app-specific or nullproto- the serialized localized resource- Throws:
IOException
-
removeLocalizedResource
public void removeLocalizedResource(String user, org.apache.hadoop.yarn.api.records.ApplicationId appId, org.apache.hadoop.fs.Path localPath) throws IOException Description copied from class:NMStateStoreServiceRemove records related to a resource localization- Specified by:
removeLocalizedResourcein classNMStateStoreService- Parameters:
user- the username or null if the resource is publicappId- the application ID if the resource is app-specific or nulllocalPath- local filesystem path where the resource will be stored- Throws:
IOException
-
loadDeletionServiceState
public NMStateStoreService.RecoveredDeletionServiceState loadDeletionServiceState() throws IOExceptionDescription copied from class:NMStateStoreServiceLoad the state of the deletion service- Specified by:
loadDeletionServiceStatein classNMStateStoreService- Returns:
- recovered deletion service state
- Throws:
IOException
-
storeDeletionTask
public void storeDeletionTask(int taskId, org.apache.hadoop.yarn.proto.YarnServerNodemanagerRecoveryProtos.DeletionServiceDeleteTaskProto taskProto) throws IOException Description copied from class:NMStateStoreServiceRecord a deletion task- Specified by:
storeDeletionTaskin classNMStateStoreService- Parameters:
taskId- the deletion task IDtaskProto- the deletion task protobuf- Throws:
IOException
-
removeDeletionTask
Description copied from class:NMStateStoreServiceRemove records corresponding to a deletion task- Specified by:
removeDeletionTaskin classNMStateStoreService- Parameters:
taskId- the deletion task ID- Throws:
IOException
-
loadNMTokensState
Description copied from class:NMStateStoreServiceLoad the state of NM tokens- Specified by:
loadNMTokensStatein classNMStateStoreService- Returns:
- recovered state of NM tokens
- Throws:
IOException
-
storeNMTokenCurrentMasterKey
public void storeNMTokenCurrentMasterKey(org.apache.hadoop.yarn.server.api.records.MasterKey key) throws IOException Description copied from class:NMStateStoreServiceRecord the current NM token master key- Specified by:
storeNMTokenCurrentMasterKeyin classNMStateStoreService- Parameters:
key- the master key- Throws:
IOException
-
storeNMTokenPreviousMasterKey
public void storeNMTokenPreviousMasterKey(org.apache.hadoop.yarn.server.api.records.MasterKey key) throws IOException Description copied from class:NMStateStoreServiceRecord the previous NM token master key- Specified by:
storeNMTokenPreviousMasterKeyin classNMStateStoreService- Parameters:
key- the previous master key- Throws:
IOException
-
storeNMTokenApplicationMasterKey
public void storeNMTokenApplicationMasterKey(org.apache.hadoop.yarn.api.records.ApplicationAttemptId attempt, org.apache.hadoop.yarn.server.api.records.MasterKey key) throws IOException Description copied from class:NMStateStoreServiceRecord a master key corresponding to an application- Specified by:
storeNMTokenApplicationMasterKeyin classNMStateStoreService- Parameters:
attempt- the application attempt IDkey- the master key- Throws:
IOException
-
removeNMTokenApplicationMasterKey
public void removeNMTokenApplicationMasterKey(org.apache.hadoop.yarn.api.records.ApplicationAttemptId attempt) throws IOException Description copied from class:NMStateStoreServiceRemove a master key corresponding to an application- Specified by:
removeNMTokenApplicationMasterKeyin classNMStateStoreService- Parameters:
attempt- the application attempt ID- Throws:
IOException
-
loadContainerTokensState
public NMStateStoreService.RecoveredContainerTokensState loadContainerTokensState() throws IOExceptionDescription copied from class:NMStateStoreServiceLoad the state of container tokens- Specified by:
loadContainerTokensStatein classNMStateStoreService- Returns:
- recovered state of container tokens
- Throws:
IOException
-
storeContainerTokenCurrentMasterKey
public void storeContainerTokenCurrentMasterKey(org.apache.hadoop.yarn.server.api.records.MasterKey key) throws IOException Description copied from class:NMStateStoreServiceRecord the current container token master key- Specified by:
storeContainerTokenCurrentMasterKeyin classNMStateStoreService- Parameters:
key- the master key- Throws:
IOException
-
storeContainerTokenPreviousMasterKey
public void storeContainerTokenPreviousMasterKey(org.apache.hadoop.yarn.server.api.records.MasterKey key) throws IOException Description copied from class:NMStateStoreServiceRecord the previous container token master key- Specified by:
storeContainerTokenPreviousMasterKeyin classNMStateStoreService- Parameters:
key- the previous master key- Throws:
IOException
-
storeContainerToken
public void storeContainerToken(org.apache.hadoop.yarn.api.records.ContainerId containerId, Long expirationTime) throws IOException Description copied from class:NMStateStoreServiceRecord the expiration time for a container token- Specified by:
storeContainerTokenin classNMStateStoreService- Parameters:
containerId- the container IDexpirationTime- the container token expiration time- Throws:
IOException
-
removeContainerToken
public void removeContainerToken(org.apache.hadoop.yarn.api.records.ContainerId containerId) throws IOException Description copied from class:NMStateStoreServiceRemove records for a container token- Specified by:
removeContainerTokenin classNMStateStoreService- Parameters:
containerId- the container ID- Throws:
IOException
-
loadLogDeleterState
Description copied from class:NMStateStoreServiceLoad the state of log deleters- Specified by:
loadLogDeleterStatein classNMStateStoreService- Returns:
- recovered log deleter state
- Throws:
IOException
-
storeLogDeleter
public void storeLogDeleter(org.apache.hadoop.yarn.api.records.ApplicationId appId, org.apache.hadoop.yarn.proto.YarnServerNodemanagerRecoveryProtos.LogDeleterProto proto) throws IOException Description copied from class:NMStateStoreServiceStore the state of a log deleter- Specified by:
storeLogDeleterin classNMStateStoreService- Parameters:
appId- the application ID for the log deleterproto- the serialized state of the log deleter- Throws:
IOException
-
removeLogDeleter
public void removeLogDeleter(org.apache.hadoop.yarn.api.records.ApplicationId appId) throws IOException Description copied from class:NMStateStoreServiceRemove the state of a log deleter- Specified by:
removeLogDeleterin classNMStateStoreService- Parameters:
appId- the application ID for the log deleter- Throws:
IOException
-
loadAMRMProxyState
Description copied from class:NMStateStoreServiceLoad the state of AMRMProxy.- Specified by:
loadAMRMProxyStatein classNMStateStoreService- Returns:
- recovered state of AMRMProxy
- Throws:
IOException- if fails
-
storeAMRMProxyCurrentMasterKey
public void storeAMRMProxyCurrentMasterKey(org.apache.hadoop.yarn.server.api.records.MasterKey key) throws IOException Description copied from class:NMStateStoreServiceRecord the current AMRMProxyTokenSecretManager master key.- Specified by:
storeAMRMProxyCurrentMasterKeyin classNMStateStoreService- Parameters:
key- the current master key- Throws:
IOException- if fails
-
storeAMRMProxyNextMasterKey
public void storeAMRMProxyNextMasterKey(org.apache.hadoop.yarn.server.api.records.MasterKey key) throws IOException Description copied from class:NMStateStoreServiceRecord the next AMRMProxyTokenSecretManager master key.- Specified by:
storeAMRMProxyNextMasterKeyin classNMStateStoreService- Parameters:
key- the next master key- Throws:
IOException- if fails
-
storeAMRMProxyAppContextEntry
public void storeAMRMProxyAppContextEntry(org.apache.hadoop.yarn.api.records.ApplicationAttemptId attempt, String key, byte[] data) throws IOException Description copied from class:NMStateStoreServiceAdd a context entry for an application attempt in AMRMProxyService.- Specified by:
storeAMRMProxyAppContextEntryin classNMStateStoreService- Parameters:
attempt- app attempt IDkey- key stringdata- state data to store- Throws:
IOException- if fails
-
removeAMRMProxyAppContextEntry
public void removeAMRMProxyAppContextEntry(org.apache.hadoop.yarn.api.records.ApplicationAttemptId attempt, String key) throws IOException Description copied from class:NMStateStoreServiceRemove a context entry for an application attempt in AMRMProxyService.- Specified by:
removeAMRMProxyAppContextEntryin classNMStateStoreService- Parameters:
attempt- attempt IDkey- key string- Throws:
IOException- if fails
-
removeAMRMProxyAppContext
public void removeAMRMProxyAppContext(org.apache.hadoop.yarn.api.records.ApplicationAttemptId attempt) throws IOException Description copied from class:NMStateStoreServiceRemove the entire context map for an application attempt in AMRMProxyService.- Specified by:
removeAMRMProxyAppContextin classNMStateStoreService- Parameters:
attempt- attempt ID- Throws:
IOException- if fails
-
storeAssignedResources
public void storeAssignedResources(Container container, String resourceType, List<Serializable> assignedResources) throws IOException Description copied from class:NMStateStoreServiceStore the assigned resources to a container.- Specified by:
storeAssignedResourcesin classNMStateStoreService- Parameters:
container- NMContainerresourceType- Resource TypeassignedResources- Assigned resources- Throws:
IOException- if fails
-
initStorage
- Specified by:
initStoragein classNMStateStoreService- Throws:
IOException
-
startStorage
- Specified by:
startStoragein classNMStateStoreService- Throws:
IOException
-
closeStorage
- Specified by:
closeStoragein classNMStateStoreService- Throws:
IOException
-