Providing Credentials using Environment Variables

For dse client-tool, dse advrep, and dse spark commands, provide credentials using environment variables. To increase security and prevent authentication credentials from appearing in log files, DataStax recommends using environment variables instead of passing credentials on the command line or in the .dserc file.

Add the environment variables to your Bash .profile or .bash_profile files.

Database variables

To specify a user name and password for commands that interact with the database, define variables DSE_USERNAME and DSE_PASSWORD.

export DSE_USERNAME=<username> &&
export DSE_PASSWORD=<password>

Was this helpful?

Give Feedback

How can we improve the documentation?

© 2024 DataStax | Privacy policy | Terms of use

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,