Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set CONSISTENCY level in cassandra permanently?

I want to set consistency level to QUORUM, I am able to do this using cqlsh with using 'CONSISTENCY QUORUM'. but the problem is that that was set to only for that particular time. I don't see any property related to CONSISTENCY level in cassandra.yaml.

Is there any way to set it permanently, any configuration file?

like image 603
Vish Avatar asked Oct 19 '25 12:10

Vish


1 Answers

There is no such properly in cassandra.yaml. But you can do it by appropriately setting the below line in bin/cqlsh.py

self.consistency_level = cassandra.ConsistencyLevel.QUORUM
like image 159
Arun Joy Thekkiniyath Avatar answered Oct 21 '25 17:10

Arun Joy Thekkiniyath