Sumit Thakur
Sumit Thakur

Reputation: 51

Why drop key-space data did not removed with its snapshot files from Disk?

I used the DROP KEYSPACE command to perform a drop operation for my keyspace from cassandra cluster; the operation was successfully executed, but why weren't the data files for that keyspace (and its snapshots) removed?

Is there a way to drop keyspace and contextually remove from disk all files related to it? Or should cassandra usersremove this data manually?

apache cassandra version : 2.0.10

Thanks & Regards

Sumit Thakur

Upvotes: 3

Views: 866

Answers (1)

Adam Holmberg
Adam Holmberg

Reputation: 7365

Snapshots can be removed manually, or with the nodetool clearsnapshot command.

clearsnapshot Remove the snapshot with the given name from the given keyspaces. If no snapshotName is specified we will remove all snapshots

You can configure automatic snapshots on drop using auto_snapshot in cassandra.yaml.

Upvotes: 3

Related Questions