简体   繁体   中英

Backup and Restore Cassandra On Kubernetes

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.

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.

使用 ETL(例如 Spark 作业)将数据从一个云传输到另一个云

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM