Bringing together the Apache Cassandra experts from the community and DataStax.

Want to learn? Have a question? Want to share your expertise? You are in the right place!

Not sure where to begin? Getting Started

 

question

hansel avatar image
hansel asked Erick Ramirez answered

Is it possible to migrate data from a Cassandra cluster in k8s to a cluster in a VM?

Hello, I have a cassandra provisioned inside a k8 node using casskop. I would like to snapshot the keyspace and restore it to another cassandra in another VM.
is this possible ? if so what's the best way can I achieve it ?
Thank you

restoremigration
10 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

Erick Ramirez avatar image
Erick Ramirez answered

Yes, it is possible to do it and whether the clusters are in Kubernetes or VM is not relevant since what you're doing is just cloning the tables from one cluster to another. You can clone the data from the snapshot one table a time.

If the source cluster in Kubernetes is "identical" in configuration to the destination cluster, follow the steps I documented in #4534. Otherwise if they're not identical, follow the steps I documented in #4477.

For the purposes of this question, two clusters have identical configuration if:

  1. the cluster topologies are identical -- same number of DCs, same number of nodes in each DC
  2. the token assignments are identical -- the assigned tokens for each node in one cluster is a mirror-image of the nodes in another cluster

Cheers!

Share
10 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.