Provide credentials in a file

Create a file that contains the credentials for commands that access the database or Java Management Extensions (JMX).

Path to file

The credentials file can be named anything you prefer, for example, .hcdrc. The file location can be anywhere on the filesystem. You must provide the full path with the -f option when running commands.

Database authentication parameters

To provide credentials for commands that require database authentication against an LDAP and/or internal scheme, define the following parameters in the credentials file.

username=<username>
password=<password>
username

The LDAP user name or internal role name.

password

The account password in plain text.

JMX authentication parameters

To provide credentials for commands that require JMX authentication, define the following parameters in the credentials file.

jmx_username=<jmx_username>
jmx_password=<jmx_password>
jmx_username

Set to name used for JMX login.

jmx_password

Set to the password of the JMX user.

Hyper-Converged Database (HCD) supports the built-in JMX authentication against a file or against a HCD authentication scheme. For more information, see Configure JMX authentication.

Was this helpful?

Give Feedback

How can we improve the documentation?

© 2025 DataStax | 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: +1 (650) 389-6000, info@datastax.com