Repairing a Cassandra Node

You can recover your Cassandra data and commit log in the case of a disaster.

Perform a recovery in the following scenarios:

  • When the Cassandra data files or sstables are corrupted or lost

  • When you can rebuild a Cassandra source node, but the data is lost or corrupted

If you cannot rebuild the Cassandra node, then you need to replace the node.

For more information, see Replacing a Cassandra Dead Node.

Before You Begin

  1. Shut down the Cassandra process on the Cassandra client where you perform the restore.

  2. Edit the Cassandra configuration file, such as cassandra.yaml file, and then set the auto_bootstrap parameter to false.

    Do not modify any other Cassandra configuration file.

  3. Delete the commit logs, and the files that are under the saved_caches directory.

  4. If the data is corrupted, clean up the data directory.

Procedure

  1. From the navigation pane, go to Protect > Big data.

    The Big data page appears.

  2. In the Name column, click the cluster that you want to repair the node for.

    The cluster page appears.

  3. On the Configuration tab, select a node that you want to repair, click the menu icon Admin Console menu icon (3 vertical dots), and then click Repair node.

    A confirmation message appears.

  4. Click Yes.

Result

The software restores the data, and then refreshes the Cassandra cluster.

×

Loading...