How to change default password for Cassandra

Updated: Feb 2

The default password for Cassandra is Cassandra. So we need to change it immediately after we install it. We can use this command to change it.

Change default password for Cassandra user

# cqlsh `hostname` -u cassandra

Password:

Connected to xxx at xxx-xxx-xxx-2.localdomain:9042.

[cqlsh 5.0.1 | Cassandra 2.2.13 | CQL spec 3.3.1 | Native protocol v4]

Use HELP for help.

cassandra@cqlsh>

cassandra@cqlsh> ALTER USER cassandra with PASSWORD 'xxxx#####xxxxxxx';

cassandra@cqlsh> exit

Join our mail group. Get a free Linux account on Cloud.

Never miss a post!

Want a free Linux account?  This account can be used to login to our cloud server and practice Linux commands.

 
kamateravps.gif
topbackgroud.png

✔ Linux Commands   ✔ Linux Skills    ✔ LinuxPerformance   ✔ Linux Interview

Some articles are from the public internet. If you find your article misused or undesired here and you don't want us to display it, please let us know and we'll remove it immediately.