MutableCSConfigurationProviderpublic interface MutableConfigurationProvider
| Modifier and Type | Method | Description |
|---|---|---|
org.apache.hadoop.conf.Configuration |
applyChanges(org.apache.hadoop.conf.Configuration oldConfiguration,
org.apache.hadoop.yarn.webapp.dao.SchedConfUpdateInfo confUpdate) |
Apply the changes on top of the actual configuration.
|
void |
close() |
Closes the configuration provider, releasing any required resources.
|
void |
confirmPendingMutation(YarnConfigurationStore.LogMutation pendingMutation,
boolean isValid) |
Confirm last logged mutation.
|
void |
formatConfigurationInStore(org.apache.hadoop.conf.Configuration conf) |
|
ConfigurationMutationACLPolicy |
getAclMutationPolicy() |
Get the acl mutation policy for this configuration provider.
|
org.apache.hadoop.conf.Configuration |
getConfiguration() |
Returns scheduler configuration cached in this provider.
|
long |
getConfigVersion() |
Get the last updated scheduler config version.
|
YarnConfigurationStore.LogMutation |
logAndApplyMutation(org.apache.hadoop.security.UserGroupInformation user,
org.apache.hadoop.yarn.webapp.dao.SchedConfUpdateInfo confUpdate) |
Log user's requested configuration mutation, and applies it in-memory.
|
void |
reloadConfigurationFromStore() |
Called when a new ResourceManager is starting/becomes active.
|
void |
revertToOldConfig(org.apache.hadoop.conf.Configuration config) |
ConfigurationMutationACLPolicy getAclMutationPolicy()
void reloadConfigurationFromStore()
throws java.lang.Exception
java.lang.Exception - if configuration could not be refreshed from storeYarnConfigurationStore.LogMutation logAndApplyMutation(org.apache.hadoop.security.UserGroupInformation user, org.apache.hadoop.yarn.webapp.dao.SchedConfUpdateInfo confUpdate) throws java.lang.Exception
user - User who requested the changeconfUpdate - User's requested configuration changejava.lang.Exception - if logging the mutation failsorg.apache.hadoop.conf.Configuration applyChanges(org.apache.hadoop.conf.Configuration oldConfiguration,
org.apache.hadoop.yarn.webapp.dao.SchedConfUpdateInfo confUpdate)
throws java.io.IOException
oldConfiguration - actual configurationconfUpdate - changelistjava.io.IOException - if the merge failedvoid confirmPendingMutation(YarnConfigurationStore.LogMutation pendingMutation, boolean isValid) throws java.lang.Exception
pendingMutation - the log mutation to applyisValid - if the last logged mutation is applied to scheduler
properly.java.lang.Exception - if confirming mutation failsorg.apache.hadoop.conf.Configuration getConfiguration()
long getConfigVersion()
throws java.lang.Exception
java.lang.Exception - exception occurs.void formatConfigurationInStore(org.apache.hadoop.conf.Configuration conf)
throws java.lang.Exception
java.lang.Exceptionvoid revertToOldConfig(org.apache.hadoop.conf.Configuration config)
throws java.lang.Exception
java.lang.Exceptionvoid close()
throws java.io.IOException
java.io.IOException - on failure to closeCopyright © 2008–2025 Apache Software Foundation. All rights reserved.