3
votes

We have a Cassandra Cluster on my kubernetes cluster. How we are planning migrate the current cluster from GCP to AWS. How can I restore my Cassandra Keyspaces and Snapshots. From the following link, I got a idea for took backup: https://8kmiles.com/blog/cassandra-backup-and-restore-methods/

But the docs shows only snapshot backup case. Nothing says about 'Keyspaces'. How can I backup my Keyspace and Snapshot.? How can I retore the same. Our Cassandra running on Kubernetes both GCP and AWS.

2
Why don't you just add a new DC? - Horia
After adding a new DC you can decommission the old dc docs.datastax.com/en/cassandra/3.0/cassandra/operations/… - Horia

2 Answers

1
votes

I think you have two options here:

  1. a backup/restore approach as you stated. Be aware that nodetool snapshot is copying your data and exports the schema of the table in schema.cql file. You will need to run a describe keyspace command on the existing cluster and run it on the new cluster in order to create the new keyspace, since nodetool is not doing this. This answer has some details regarding this matter.
  2. Add a new DC and decommission the old one, after the data is migrated. Here you must have the same cassandra version.
0
votes

Use an ETL e.g. Spark job to pipe the data from one cloud to the other