Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Delete a snapshot from cassandra

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.

like image 880
Chris Eberle Avatar asked Apr 05 '11 15:04

Chris Eberle


People also ask

How do you delete a snapshot?

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.

Can I delete snapshot directory?

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.

Where are snapshots stored in Cassandra?

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.

What is snapshot in Cassandra?

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.


1 Answers

OK I figured this one out (with the help of IRC). It's nodetool -h localhost clearsnapshot.

like image 95
Chris Eberle Avatar answered Sep 30 '22 18:09

Chris Eberle