Configure HCD Unified Authentication in a new cluster

Use this process to implement HCD Unified Authentication in a new deployment.

Only use this process for new deployments.

For existing HCD deployments, see Configure HCD Unified Authentication in a live cluster. Additional steps and planning are required to avoid downtime when implementing Unified Authentication in a live cluster.

  1. Change the replication factor for the security keyspaces.

  2. Configure system settings for HCD Unified Authentication.

  3. Configuring authentication and authorization schemes:

  4. Configure JMX authentication.

    This requires changes to the cassandra-env.sh for nodetool to run against an authentication-enabled cluster.

    The location of this file depends on your installation type.

    • Package installations: /etc/hcd/cassandra/cassandra-env.sh

    • Tarball installations: INSTALLATION_LOCATION/resources/cassandra/conf/cassandra-env.sh

  5. Restart all HCD nodes.

    Nodes are vulnerable to malicious activity following this restart. Anybody can access the system using the default cassandra role with password cassandra. DataStax recommends using firewall rules to isolate the cluster until you disable the cassandra role.

  6. After all nodes restart, use cqlsh to replace the cassandra default role with a non-default superuser role.

  7. Use the new superuser role to configure additional roles and assign permissions.

  8. Enable and monitor audit logs to verify that all applications can access nodes and have the permissions required to execute requests.

  9. After enabling authentication and authorization, you must provide credentials to run HCD tools, such as CQL shell and nodetool.

    Make sure all applications use the latest version of a compatible Cassandra driver. Unsupported drivers and earlier versions don’t support HCD Unified Authentication.

    For Apache Spark™ component connections, HCD provides internal authentication support for connecting Spark to HCD nodes, but it doesn’t handle authentication between Spark components.

Was this helpful?

Give Feedback

How can we improve the documentation?

© Copyright IBM Corporation 2026 | Privacy policy | Terms of use Manage Privacy Choices

Apache, Apache Cassandra, Cassandra, Apache Tomcat, Tomcat, Apache Lucene, Apache Solr, Apache Hadoop, Hadoop, Apache Pulsar, Pulsar, Apache Spark, Spark, Apache TinkerPop, TinkerPop, Apache Kafka and Kafka are either registered trademarks or trademarks of the Apache Software Foundation or its subsidiaries in Canada, the United States and/or other countries. Kubernetes is the registered trademark of the Linux Foundation.

General Inquiries: Contact IBM