I'm running a 4-node Cassandra cluster. Some of our nodes have some very large snapshots, and we're running out of disk space. I need to delete the snapshots, but I can't find any documentation which states how to do this properly. Do I just shut the node down and delete the files in the snapshots directory? Is there some kind of command? Thanks.
On the Snapshots page, select a snapshot to remove. In the bottom pane, click Delete. A confirmation window appears. Click Yes to continue deleting the snapshot or click No to stop the deletion.
snapshot directory is a readonly and cannot be deleted , User's will not be able to store anything in snapshot directory they can only copy from it.
The directory structure of Cassandra data consists of different directories for keyspaces, and tables with the data files within the table directories. Directories backups and snapshots to store backups and snapshots respectively for a particular table are also stored within the table directory.
A brief description of how Cassandra backs up data. Cassandra backs up data by taking a snapshot of all on-disk data files (SSTable files) stored in the data directory. You can take a snapshot of all keyspaces, a single keyspace, or a single table while the system is online.
OK I figured this one out (with the help of IRC). It's nodetool -h localhost clearsnapshot
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With