1 Answer
1

You can change the data storage location in the cassandra.yaml file, if you don't want data stored in /var/lib. See DataStax's Guide for Configuring Cassandra for a full explanation of the config file. In particular,

> commitlog_directory

The directory where the commit log will be
stored. For optimal write performance, DataStax recommends the commit
log be on a separate disk partition (ideally a separate physical
device) from the data file directories.

> data_file_directories
The directory location where column family data
(SSTables) will be stored.

They do recommend you put the commit log one disk and the actual data on a second disk to avoid running out of space.