Disabling High Availability (HA) in ODP Ranger KMS

Disabling High Availability (HA) for Ranger KMS may be necessary in scenarios where a single-node setup is sufficient, or when troubleshooting and maintenance require reducing complexity. This ensures that only one KMS instance is actively handling encryption key requests, simplifying configuration and avoiding potential inconsistencies.

Here are the steps for disabling KMS HA:

Option 1

  1. Stop the Ranger KMS service.

    1. Navigate to the Ambari UI.
    2. Select Ranger KMS.
    3. Click Action > Stop.
  2. Run deleteall /zkdtsm using the Zookeeper Client.

    1. Open a terminal
    2. Run the command:
Bash
Copy
  1. Update the Ranger KMS Configuration.
    1. Navigate to Ambari > Ranger KMS configuration.
    2. Set or update the following properties:
Bash
Copy
  1. Remove the Additional KMS Host.
    1. Navigate to Ambari > HDFS > Configs.
    2. Update the following configurations:
hdfs-site.xml
Copy
  1. Save and Restart the Services.

    1. Save the configurations.
    2. Start only one KMS and HDFS service to ensure a single authoritative source for key management. Running multiple KMS instances can lead to inconsistencies in key resolution and cache synchronization. Keeping only one active KMS prevents conflicts and ensures stable encryption key distribution.
    3. Save the configurations.
    4. Start only one KMS and HDFS service.

Option 2

  1. Stop Ranger KMS and Delete the Ranger KMS Service: This disables KMS completely.
  2. Ambari Service Advisor Updates: Once deleted, the Ambari service advisor updates the recommended configuration accordingly.
  3. Impact Consideration: Ensure that no dependencies rely on KMS before deletion to avoid potential disruptions.

Important Notes

Update the Property: hadoop.kms.authentication.zk-dt-secret-manager.enable

Bash
Copy

Update the Property: hadoop.kms.authentication.signer.secret.provider

Bash
Copy

The Apache Hadoop KMS documentation provides more in-depth information on key management, authentication mechanisms, and best practices for configuring and troubleshooting KMS. It includes details on enabling and disabling HA, security considerations, and performance tuning. For additional details, refer to the official Apache Hadoop KMS documentation: Hadoop KMS Documentation.

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
  Last updated