cleanup

While scaling an Apache Cassandra cluster, data is streamed to new nodes or data is streamed from nodes based on scaling up or down. But once the data is streamed to new nodes after token allocation, Cassandra doesn't actually delete the data that is not owned by that node. In order to clean up all that data, nodetool has the following operation:

$CASSANDRA_HOME/bin/nodetool cleanup

Get Mastering Apache Cassandra 3.x - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.