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
-
Shut down the Cassandra process on the Cassandra client where you perform the restore.
-
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.
-
Delete the commit logs, and the files that are under the saved_caches directory.
-
If the data is corrupted, clean up the data directory.
Procedure
-
From the navigation pane, go to Protect > Big data.
The Big data page appears.
-
In the Name column, click the cluster that you want to repair the node for.
The cluster page appears.
-
On the Configuration tab, select a node that you want to repair, click the menu icon
, and then click Repair node.A confirmation message appears.
-
Click Yes.
Result
The software restores the data, and then refreshes the Cassandra cluster.