Reference https://docs.datastax.com/en/cassandra/2.1/cassandra/configuration/configCassandra_yaml_r.html
We are talking about the way tarball installation, that is, to download the source to the specified path, assuming that it is placed under/home/user/cassandra
There are bin,data,conf and other folders under this path.
By default, both SST and log are stored in the data directory.
Data in the data directory is the SST storage directory, which is classified according to the database name.
Configuration file under Conf, named Cassandra.yaml
How to configure
Data_file_directories:
-/home/leveldb/cassandra/cassandra/data
Be careful not to use the TAP key.
If the specified directory does not exist, the service program creates one itself, so the directory should have permission to modify the service program.
Cassandra specifying the database path