Providing credentials for CQLSH
To start a CQL shell (cqlsh
) session with a node that has DataStax
Enterprise authentication enabled, provide credentials using cli options or in the
cqlshrc file .
Provide a username and password to connect to a node on an authentication enabled
DataStax Enterprise cluster using credentials:
- Stored in the cqlshrc file
- Specified by command line options
cqlshrc.sample
The default location of the cqlshrc.sample files depends on the type of installation:Package installations | /etc/dse/cassandra |
Tarball installations | installation_location/resources/cassandra/conf |
Debugging cqlsh authentication
If problems authenticating occur, use the --debug option to show CQL shell settings and connection details.
Procedure
-
Set credentials in the cqlshrc file:
-
On the command line:
- Prompt for
password
cqlsh -u user_name
- No
prompt
cqlsh -u user_name -p password
- Prompt for
password