DataStax Academy FAQ

DataStax Academy migrated to a new learning management system (LMS) in July 2020. We are also moving to a new Cassandra Certification process so there are changes to exam bookings, voucher system and issuing of certificates.

Check out the Academy FAQ pages for answers to your questions:


question

scano_183208 avatar image
scano_183208 asked ·

Getting AuthenticationException in DSEFS after exporting DSE_USERNAME, DSE_PASSWORD

Getting the following error when i export the DSE_USERNAME and DSE_PASSWORD and invoke the "dse fs" command:

DSE AuthenticationException Error: Authentication failed: Could not authenticate user using DSE scheme

dsedsefsssl
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

Erick Ramirez avatar image
Erick Ramirez answered ·

@scano_183208 Providing credentials using environment variables is only valid for some commands such as dse advrep or dse spark. For DSEFS, there are 2 ways of providing credentials:

Command line

Specify the credentials as follows:

$ dse -u username -p password fs

If you'd like to use environment variables:

$ dse -u $DSE_USERNAME -p $DSE_PASSWORD fs

For details, see Providing credentials on command line.

In a file

Place the credentials in a .dserc file in the OS user's home directory with entries which look like these:

username=john
password=SomeComplexPassword

For details, see Providing credentials in a file. Cheers!

1 comment Share
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Yes, I already have the dserc file in place. The thing is that I see this error only when I check the dsefs-shell.log.

If I type dse fs into the command line it logs in successfully and when I check the debug.log it shows the following error:

ERROR [dsefs-netty-worker-4] 2020-03-19 11:30:44,300 AbstractDigestRestServerAuthProvider.scala:103 - Could not authenticate request DefaultHttpRequest(decodeResult: success, version: HTTP/1.1)
0 Likes 0 · ·