I have full access to the Cassandra installation files and a PasswordAuthenticator configured in cassandra.yaml
. What do I have to do to reset admin user's password that has been lost, while keeping the existing databases intact?
The hash has changed for Cassandra 2.1:
UPDATE system_auth.credentials SET salted_hash = '$2a$10$H46haNkcbxlbamyj0OYZr.v4e5L08WTiQ1scrTs9Q3NYy.6B..x4O' WHERE username='cassandra';
Solved with the following steps:
cassandra.yaml
to AllowAllAuthenticator and restart Cassandracqlsh
update system_auth.credentials set salted_hash='$2a$10$vbfmLdkQdUz3Rmw.fF7Ygu6GuphqHndpJKTvElqAciUJ4SZ3pwquu' where username='cassandra';
cqlsh
Now you can log in with
cqlsh -u cassandra -p cassandra
and change the password to something else.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With