All articles

Migrating from DataStax Enterprise to Open-Source Apache Cassandra

Moving from DataStax Enterprise to open-source Apache Cassandra lets you keep Cassandra while choosing your own support and management tools. How much work that involves depends largely on which DSE features your applications actually use.

For an application using ordinary CQL the work centres on compatibility testing and moving data safely. Applications using DSE Search or Graph also need changes to those integrations before they can leave DSE. This guide covers how to establish that scope and migrate without losing track of validation or rollback.

Check Compatibility First

Start with the exact DSE release and your application dependencies. dse -v identifies the DSE version while nodetool version reports the underlying Cassandra version. Those are different version numbers and neither alone establishes whether an in-place migration is supported.

For DSE 6.x, plan for a separate destination cluster. Its SSTables and proprietary system-keyspace configuration cannot simply be transferred to an open-source Cassandra cluster. Adding open-source nodes to the existing DSE cluster is not a migration procedure.

Cassandra 5.0 includes BTI SSTables and Unified Compaction Strategy. Having related features does not make its files interchangeable with DSE’s files. Older DSE versions also need a version-specific migration assessment rather than an assumed direct upgrade to Cassandra 5.0.

Before choosing a destination release, record:

  • DSE and Java versions together with application driver versions.
  • Table sizes and growth rates alongside TTLs and retention requirements.
  • Read and write rates plus the latency limits your applications need.
  • Data centres and replication settings together with disaster-recovery requirements.
  • Any use of Search, Analytics, Graph or proprietary authentication and driver features.

This inventory also prevents unnecessary work. A feature included in your DSE licence does not need replacing if no application uses it.

Replace the DSE Features You Use

Open-source alternatives are available for many DSE capabilities but some require application changes. Review the actual queries and security requirements before selecting replacements.

DSE componentPossible replacementWork to account for
DSE SearchOpenSearch or Cassandra indexes where suitableTranslate search queries and mappings. Maintain search data separately if using OpenSearch.
DSE AnalyticsApache Spark with a compatible Cassandra connectorTest jobs and connector compatibility. Size Spark separately from Cassandra.
DSE GraphJanusGraph or Cassandra tables designed for known queriesReview graph schema and traversals. Test any DSE-specific Gremlin behaviour.
Advanced SecurityCassandra authentication, roles and TLS with additional integrations as neededReview identity integration and encryption requirements. Rework proprietary access controls.
DSE driversMaintained Cassandra driversCheck authentication and DSE-specific APIs rather than assuming a dependency change is enough.
NodeSyncAxonOps Adaptive RepairConfigure repair for the destination cluster and verify completion within the required interval.
OpsCenterAxonOpsSet up monitoring and operational controls before migrating applications.

Search, Analytics and Graph

Moving Search to OpenSearch separates search capacity from Cassandra capacity but introduces a data-synchronisation pipeline. Test updates and deletes as well as inserts so that search results remain correct after failures or retries. Cassandra’s Storage-Attached Indexing may cover some query requirements but is not a drop-in replacement for Solr.

With Analytics, check the Spark and Scala versions against the connector and Java versions your jobs require. Running Spark on separate servers avoids competing for the same CPU and memory as Cassandra, although its queries still consume Cassandra resources.

For Graph, establish which traversals the application needs before choosing another graph database. JanusGraph may be appropriate for traversal-heavy workloads while fixed queries may be better served by explicitly modelled Cassandra tables. Neither approach makes a DSE Graph migration automatic.

Security and Drivers

Recreate roles and permissions on the destination rather than copying DSE system tables. Confirm how applications authenticate and whether the existing setup relies on LDAP, Kerberos or proprietary row-level access controls. Encryption at rest also needs its own review if you currently depend on DSE’s implementation.

Test driver changes against representative application requests. Ordinary CQL may need relatively little work while Graph APIs and DSE-specific authentication or paging behaviour need separate attention. Include connection recovery and retries in those tests so that an application that works during normal operation also behaves correctly during a node failure.

Plan the Data Migration

A separate cluster lets you validate the destination before committing to it. Two tools can help with different parts of the move:

  • Cassandra Data Migrator (CDM) copies existing user data and provides validation jobs.
  • ZDM Proxy can route application traffic to both clusters during migration. AxonOps maintains this fork with changes from DSE-to-Cassandra migration work.
Migration architecture using CDM to copy existing data and ZDM Proxy to route application traffic between DSE and Cassandra

The proxy initially serves reads from DSE while sending writes to both clusters. CDM copies the historical data into the destination. Once validation is complete you can move reads to Cassandra while retaining a rollback window.

This requires testing with your application and the chosen versions of both tools. In particular, check timestamp and TTL preservation together with update and delete behaviour. Counters and other specialised data types need explicit coverage in the migration tests. CDM does not replace the work of preparing schema or recreating credentials.

Plan rollback before moving traffic. Returning reads to DSE is only safe if it still has the writes accepted since cutover. Keep track of failures on either side and agree when the source can stop receiving writes. An old source cluster is not automatically a usable rollback target.

Migration Procedure

1. Prepare the Destination

Provision the destination for the intended workload and availability requirements. Create the keyspaces and tables using settings supported by the destination release, then recreate roles and credentials before enabling any dual writes.

Complete the required Search, Analytics or Graph changes in a test environment first. Establish acceptance criteria for application correctness and performance so the migration has a measurable completion point.

Set up backup and repair before production traffic arrives. Restore a test backup and confirm that the recovered data is usable rather than relying only on a successful backup job.

2. Establish Monitoring

Monitor DSE and Cassandra together before copying data. That gives you a source baseline and makes it easier to distinguish migration load from an application problem.

With AxonOps, follow the agent installation guide, then complete the agent configuration and Cassandra configuration. Follow the instructions for applying the changes using your normal maintenance process.

Compare query throughput and latency with CPU usage, heap usage, garbage collection and compaction activity. Keep the workload comparable when assessing the destination so that a quiet target is not mistaken for a faster cluster.

3. Enable Dual Writes and Copy Data

Test proxy behaviour before moving production clients through it. Reads should still come from DSE at this stage while successful writes reach both clusters. Check the effect of an unavailable destination and confirm how failures appear to the application.

Run CDM at a rate both clusters can sustain. Copying data competes with application reads on the source and adds writes and compaction work on the destination. Increase concurrency gradually while watching application latency and outstanding work.

Migration duration depends on data volume and available capacity as well as network throughput. Estimate it from a representative copy test rather than promising a fixed number of days.

4. Validate Data and Applications

Use CDM’s validation process and investigate unexplained differences before cutover. Table counts alone do not prove that values and expiry behaviour match.

Exercise the application against Cassandra with its expected queries and realistic load. Include:

  • Updates and deletes alongside TTL expiry.
  • Read and write latency at the application’s required percentiles.
  • Authentication and permission checks for each application role.
  • Node failures and client reconnection.
  • Search or Graph results where those services have been replaced.

Verify destination replica consistency with an appropriate repair plan. Repair between destination replicas does not replace comparison with the source data.

5. Move Reads and Complete the Migration

Move reads to Cassandra in controlled stages while watching errors and latency. Keep the source available and synchronised for the agreed rollback period rather than decommissioning it as soon as the first application succeeds.

Once the destination has passed the agreed checks, move clients to their final connection arrangement and remove temporary migration infrastructure. Confirm that backups and alerts still work after that change.

Retire DSE only when the rollback window has closed and the destination has a tested recovery procedure. Record ownership of the replacement services so that search pipelines and scheduled jobs do not become unmaintained dependencies after the migration team finishes.

Operating Cassandra After the Move

Leaving DSE also means replacing the operational processes that depended on it. Your team still needs reliable repair and recoverable backups alongside monitoring and access controls.

AxonOps can monitor DSE and open-source Cassandra side by side during migration and continue managing the destination afterwards. Adaptive Repair replaces the need to maintain separate repair scripts while backup and restore tooling supports recovery testing. Your engineers can learn those tools before the application cutover instead of changing the database and its management tools on the same day.

Include those operational costs when comparing options. The calculation should cover the replacement services and migration work alongside infrastructure and ongoing support, rather than comparing a DSE licence with a zero-cost software download.

For help assessing your current setup, arrange a DataStax migration review. We can review the dependencies and likely migration effort with your engineers. Cassandra support is also available for teams that want ongoing help running the destination cluster.

Demo Sandbox

Explore AxonOps for Apache Cassandra and Kafka in a live demo environment.

Try it now
All articles