How to reset a table and return space in Cassandra 2.0?

There are all kinds of conflicting methods on the Internet to drop a table and reclaim space in Cassandra 2.0. Some talk about the reduction, and then delete data from the disk manually, others say that they are truncated, and then deleted. Most pages are actually around 1.0 / 1.1 / 1.2

If I have a table on the Cassandra 2.0.x host with all the nodes up, how can I delete the table AND delete all the data at the same time?

+4
source share
1 answer

2.0 Best Solution

Truncate
Drop keyspace
Remove folder from disk

- DROP/RECREATE . , , . DROP/RECREATE 2.1.

+5

Source: https://habr.com/ru/post/1544030/


All Articles