public class PrepareKerberosIdentitiesServerAction extends AbstractPrepareKerberosServerAction
KerberosServerAction.KerberosCommandParameters, KerberosServerAction.OperationType
AUTHENTICATED_USER_NAME, DATA_DIRECTORY, DATA_DIRECTORY_PREFIX, DEFAULT_REALM, HOST_FILTER, IDENTITY_FILTER, INCLUDE_AMBARI_IDENTITY, KDC_TYPE, KEYTAB_CONTENT_BASE64, OPERATION_TYPE, PRECONFIGURE_SERVICES, SERVICE_COMPONENT_FILTER, UPDATE_CONFIGURATION_NOTE, UPDATE_CONFIGURATION_POLICY
actionLog, gson
ACTION_NAME, ACTION_USER_NAME, DEFAULT_LONG_RUNNING_TASK_TIMEOUT_SECONDS, WRAPPED_CLASS_NAME
Constructor and Description |
---|
PrepareKerberosIdentitiesServerAction() |
Modifier and Type | Method and Description |
---|---|
CommandReport |
execute(ConcurrentMap<String,Object> requestSharedDataContext)
Called to execute this action.
|
protected KerberosDescriptor |
getKerberosDescriptor(Cluster cluster,
boolean includePreconfigureData)
|
getKerberosHelper, processConfigurationChanges, processIdentity, processServiceComponentHosts, processServiceComponents
ambariServerHostID, deleteDataDirectory, getCluster, getClusterName, getClusters, getCommandParameterValue, getCommandPreconfigureType, getConfigurationProperties, getDataDirectoryPath, getDataDirectoryPath, getDefaultRealm, getHostFilter, getIdentityFilter, getKDCType, getOperationType, getPrincipalKeyNumberMap, getPrincipalPasswordMap, getServiceComponentFilter, getUpdateConfigurationPolicy, hasHostFilters, processIdentities, pruneServiceFilter, setPrincipalPasswordMap
auditLog, createCommandReport, createCompletedCommandReport, getCommandParameters, getCommandParameterValue, getExecutionCommand, getHostRoleCommand, setExecutionCommand, setHostRoleCommand
public PrepareKerberosIdentitiesServerAction()
public CommandReport execute(ConcurrentMap<String,Object> requestSharedDataContext) throws org.apache.ambari.server.AmbariException, InterruptedException
KerberosServerAction.processIdentities(Map)
to iterate through the Kerberos identity metadata and call
KerberosServerAction.processIdentities(Map)
for each identity to process.requestSharedDataContext
- a Map to be used a shared data among all ServerActions related
to a given requestorg.apache.ambari.server.AmbariException
InterruptedException
protected KerberosDescriptor getKerberosDescriptor(Cluster cluster, boolean includePreconfigureData) throws org.apache.ambari.server.AmbariException
cluster
- cluster instanceincludePreconfigureData
- true
to include the preconfigure data; false
otherwiseorg.apache.ambari.server.AmbariException
- if unable to obtain the descriptorKerberosHelper.getKerberosDescriptor(Cluster, boolean)
Copyright © 2022 Apache Software Foundation. All rights reserved.