aws-samples / cql-replicator

CQLReplicator is a migration tool that helps you to replicate data from Cassandra to AWS Services
Apache License 2.0
16 stars 8 forks source link

[CQLReplicator on Glue] Reset replication #102

Closed hungfaileung closed 9 months ago

hungfaileung commented 9 months ago

cql-replicator can remember the status of replication. If I want to delete all the data in a table and restart its replication from zero (but I don't want to run the cleanup command because I would affect all current running replications), what should I do?

nwheeler81 commented 9 months ago
  1. --state request-stop
  2. in cqlsh or AWS Console run delete from migration.ledger where ks='ks-name' and tbl='table-name'
  3. delete s3://your-landing-s3-bucket/ks-name/table-name