Skip to Content
Mastering Apache Cassandra 3.x - Third Edition
book

Mastering Apache Cassandra 3.x - Third Edition

by Aaron Ploetz, Tejaswi Malepati
October 2018
Beginner to intermediate content levelBeginner to intermediate
348 pages
10h
English
Packt Publishing
Content preview from Mastering Apache Cassandra 3.x - Third Edition

Snapshots

Clearing snapshots is a simple matter, and can be done via nodetool:

nodetool clearsnapshot

Running clearsnapshot without any parameters instructs Apache Cassandra to remove all snapshot files on a node. It can also be focused for a particular keyspace, like the following:

nodetool clearsnapshot -- packt_chapter3

Additionally, clearsnapshot can be focused even further, by specifying a snapshot by name:

nodetool clearsnapshot -t 1538941504326
The nodetool clearsnapshot command is very helpful, and can be useful to quickly clear disk space in a pinch. However, many DBAs find it much more helpful to write a script to traverse the snapshot directories and purge old snapshot files instead, keeping only the latest two or three per table. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learn Apache Cassandra in Just 2 Hours

Learn Apache Cassandra in Just 2 Hours

Navdeep Kaur

Publisher Resources

ISBN: 9781789131499Supplemental Content