How to change the location of Cassandra files?

I am running a single test instance of node Apache Cassandra. I would like to change the location where Cassandra stores its files on an external drive.

How can I change it?

+4
source share
1 answer

You should be familiar with the main configuration file cassandra.yaml . Actually, it is a good practice to try to understand as much as possible, since it reflects well the Cassandra model and inner workings.

You want to change this parameter ( as per the documentation ):

data_file_directories¶
    (Default: /var/lib/cassandra/data ) The directory location where table data
    (SSTables) is stored.
+4
source

All Articles