resetlocalschema

When a particular node's schema is out of sync with the others, resetlocalschema will resynchronize it with other nodes that have the correct schema. Once the operation is triggered, it will truncate all schema-related stables and re-stream this data from other nodes, so it will lose meta data during this process. Schema disagreements might occur due to very high tombstones, such as 100,000+. This is very handy when a node is down during a schema change, and then brought up after three hours, as hints will have cleared and this node won't have been notified:

$CASSANDRA_HOME/bin/nodetool resetlocalschema

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.