public class KerberosAdminPersistedCredentialCheck extends ClusterCheck
KerberosAdminPersistedCredentialCheck
class is used to check that the Kerberos
administrator credentials are stored in the persisted credential store when Kerberos is enabled.
This is needed so that if Kerberos principals and/or keytab files need to be created during a stack upgrade, the KDC administrator credentials are guaranteed to be available. If the temporary store is used, the credential may have expired before needed.
Modifier and Type | Field and Description |
---|---|
static String |
KEY_CREDENTIAL_NOT_STORED |
static String |
KEY_PERSISTED_STORE_NOT_CONFIGURED |
clustersProvider
Constructor and Description |
---|
KerberosAdminPersistedCredentialCheck()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Set<String> |
getApplicableServices()
Gets the set of services that this check is associated with.
|
org.apache.ambari.spi.upgrade.UpgradeCheckResult |
perform(org.apache.ambari.spi.upgrade.UpgradeCheckRequest request) |
formatEntityList, getCheckDescription, getDescription, getFailReason, getFailReason, getProperty, getQualifications
public static final String KEY_PERSISTED_STORE_NOT_CONFIGURED
public static final String KEY_CREDENTIAL_NOT_STORED
@Inject public KerberosAdminPersistedCredentialCheck()
public Set<String> getApplicableServices()
getApplicableServices
in interface org.apache.ambari.spi.upgrade.UpgradeCheck
getApplicableServices
in class ClusterCheck
public org.apache.ambari.spi.upgrade.UpgradeCheckResult perform(org.apache.ambari.spi.upgrade.UpgradeCheckRequest request) throws org.apache.ambari.server.AmbariException
org.apache.ambari.server.AmbariException
Copyright © 2022 Apache Software Foundation. All rights reserved.