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 |
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>