Migrate from Confluent Cloud to Apache Kafka: what the move involves
Teams usually start this move at a renewal, when eCKU charges, a residency requirement or lock-in make the managed cluster harder to justify. The key constraint to plan around is direction: MirrorMaker 2 can move topics, consumer group offsets and ACLs from Confluent Cloud to a self-managed Kafka cluster, but Cluster Linking cannot, because its link destinations are limited to Dedicated or Enterprise Confluent Cloud clusters. Cluster Linking is still useful for moving data into Confluent Cloud, but it does not help you leave.
The work normally falls to a platform or messaging team that owns the new brokers, with an implementation partner often handling the MirrorMaker 2 deployment, offset checkpoints and cutover rehearsal. Confirm who will run the cluster after go-live, since that person needs to understand KRaft, TLS and SASL configuration, and upgrade planning. Effort and risk depend mostly on how many topics, consumer groups and connectors you run, and on how long both clusters must stay in step. Ask any partner for a written scope that lists each of those counts before agreeing a timeline.
The clean part of the move is the Kafka core itself. Apache Kafka is Apache-2.0 with no paid edition from the project, so brokers, topics and clients carry over without a license change. The harder part is what sits around the core. Schema Registry, REST Proxy and ksqlDB, and some connectors, are under the Confluent Community License, which restricts offering them as a competing hosted service, so you should confirm the license of each component you run before choosing replacements. Schemas must be exported and validated against the new registry, and any Confluent-specific connector needs an Apache-2.0 substitute or a rebuild in Kafka Connect.
Before cutover, check that your target release is one the Kafka downloads page lists as supported, and that your Java runtime meets the upgrade notes for that release. Then rehearse the producer and consumer switch in a non-production environment, keep both clusters running until consumers have drained the old topics, and agree a rollback path in writing.
Which Confluent Cloud capabilities map to Apache Kafka, and which need rework
This table lists each Confluent Cloud capability you may rely on and marks whether it moves to self-managed Apache Kafka as clean, needs rework, or is a gap. Use it to scope the migration: clean items can be replicated with MirrorMaker 2, rework items need a mapping or cutover step, and gaps need a replacement component or a decision to drop the feature.
| Capability | What it takes on self-managed Kafka | Status |
|---|---|---|
| Topics and partitions | MirrorMaker 2 replicates topic data and configurations and preserves partitioning. Confirm retention and compaction settings on the target cluster. | Clean |
| Consumer group offsets | MirrorMaker 2 replicates consumer groups with their offsets. Plan the cutover so consumers switch after offsets are translated and caught up. | Needs rework |
| ACLs | MirrorMaker 2 replicates ACLs, but principal names often differ between clusters. In KRaft, resources without ACLs are limited to super users unless allow.everyone.if.no.acl.found is set to true. | Needs rework |
| Client authentication | Kafka supports SSL and SASL (GSSAPI, PLAIN, SCRAM-SHA-256, SCRAM-SHA-512, OAUTHBEARER). Every client needs new credentials and config before cutover. | Needs rework |
| Schema Registry | Schema Registry is under the Confluent Community License, so confirm the terms with counsel before self-hosting it. Export schemas and subjects, then validate compatibility settings on the new registry. | Needs rework |
| Connectors | Kafka Connect is Apache-2.0 and manages offsets automatically. Some Confluent connectors carry the Confluent Community License, and managed connectors need a self-managed substitute and configuration. | Needs rework |
| REST Proxy | REST Proxy is under the Confluent Community License. Confirm which HTTP clients depend on it and plan a direct client or alternative gateway. | Gap |
| ksqlDB | ksqlDB is under the Confluent Community License. Queries and persistent streams must be rewritten or moved to another stream processing option. | Gap |
| Cluster Linking | Cluster Linking creates links only to Dedicated or Enterprise Confluent Cloud clusters, so it cannot move data out. Use MirrorMaker 2 for this direction. | Gap |
What data and integrations to move, and by which documented path
Moving from Confluent Cloud is four separate jobs, each with its own tool and failure mode. MirrorMaker 2 covers topics, consumer offsets and ACLs, while schemas and connectors need work outside that replication path. Read the cards in order, because consumer offsets only make sense once the data has been copied.
Topic data and configs via MirrorMaker 2
MirrorMaker 2 copies topic data and topic configurations from Confluent Cloud into your self-managed cluster while preserving partitioning, and it detects new topics and partitions as they appear. It is built on Kafka Connect and can run as a dedicated MirrorMaker cluster started with bin/connect-mirror-maker.sh or inside an existing Kafka Connect cluster. Decide the runtime before you size anything, and confirm that both clusters can reach each other through the network paths and TLS settings your security team has approved. Test with one non-critical topic first and compare partition counts and message counts on both sides.
Geo-replication docsConsumer group offsets and ACLs
MirrorMaker 2 also replicates consumer groups with their offsets, so applications can resume on the self-managed cluster from the position they reached on Confluent Cloud. ACLs are replicated as well, but they must be reviewed against your own identity model because the target cluster enforces its own authorization. In KRaft clusters, the StandardAuthorizer stores ACLs in the cluster metadata log, and resources without ACLs are limited to super users unless allow.everyone.if.no.acl.found is set to true. Confirm that setting before cutover, since a missing ACL can block consumers that worked on Confluent Cloud.
Kafka authorization docsSchemas exported from Schema Registry
The MirrorMaker 2 documentation describes topic data, configurations, consumer groups and ACLs, but it does not describe schemas, so plan a separate export of subjects, schema versions and compatibility settings. Schema Registry is covered by the Confluent Community License, which forbids offering it as a hosted service that competes with Confluent, so have counsel confirm the terms for your intended use before you run a copy. Import the schemas into your target registry before producers switch, and check that consumers resolve the same schema IDs on the new side, because a mismatch breaks deserialization. Ask Confluent which export options your account includes.
Community License FAQConnector configurations rebuilt on Kafka Connect
Kafka Connect runs source and sink connectors in standalone or distributed mode and is administered through a REST API. Each managed Confluent connector must be replaced with a connector you have confirmed is licensed for your use, and each replacement needs its own tested configuration. The Kafka Connect overview describes no graphical interface, so connector JSON is managed through the API or third-party tools and kept in version control. Connect manages connector offsets automatically, so you do not write offset commit logic, but confirm that each replacement resumes from the same source position. Brokers and Connect both require Java 17 on Kafka 4.x.
Kafka Connect overviewHow the migration runs from inventory to decommission
The sequence moves topics, offsets, ACLs, schemas and connectors in controlled stages so that producers and consumers switch only after the self-managed cluster has proven it can serve the same data. Each step ends with a check you can record before moving on.
Inventory topics, consumers, ACLs, schemas and connectors
Your platform or Kafka team lists every topic with its partition count, retention and cleanup settings, every consumer group and the application that owns it, every ACL binding, every Schema Registry subject and compatibility mode, and every connector with its configuration. Owners of each application confirm which topics they produce to and consume from. The step is done when the inventory is reviewed by the application owners and each item has a named owner and a target on the new cluster.
Build the self-managed cluster in KRaft mode
Your infrastructure team installs Apache Kafka on a release listed as supported on the downloads page: 4.3.1, 4.2.2 or 4.1.2. The cluster runs in KRaft mode, since Kafka 4.0 supports no other mode, and brokers, Kafka Connect and tools run on Java 17. Security, TLS listeners and SASL mechanisms are configured before any data arrives. The step is done when a test producer and consumer succeed over the secured listeners and the cluster passes your own health and certificate checks.
Pilot a few topics through MirrorMaker 2
Choose a small set of low-risk topics and run MirrorMaker 2, either as a dedicated cluster started with the connect-mirror-maker script or inside an existing Kafka Connect cluster. It replicates topic data and configurations, consumer group offsets and ACLs, and detects new partitions. Compare message counts, partition layout and offsets against the source for each pilot topic. The step is done when the replicated data matches the source and the pilot consumers resume from the expected offsets.
Run both clusters in parallel while consumers move
Extend replication to the remaining topics in waves, and move consumer groups to the new cluster one application at a time while producers still write to Confluent Cloud. Track replication lag, consumer lag and any ACL or authentication errors in the logs of each application. Keep the source cluster intact so you can roll back a consumer by pointing it back. The step is done when every consumer group runs on the self-managed cluster and lag stays at levels your owners accept.
Cut producers and consumers over, then decommission
Switch producers to the self-managed bootstrap servers, confirm that the replicated topics receive new messages from every producer, and stop replication only after no data is still arriving from Confluent Cloud. Retire the MirrorMaker 2 flow, export final schema and connector configurations for your records, and set a retention window for the Confluent Cloud cluster before deleting it. The step is done when the source cluster has no active producers or consumers, the retention window has ended, and the owners sign off on the cutover record.
How MirrorMaker 2 carries data from Confluent Cloud to your cluster
The flow starts with producers and consumers on Confluent Cloud, which stay where they are during the first phase. MirrorMaker 2 runs in your network, either as a dedicated cluster or inside an existing Kafka Connect cluster, and pulls topic data, configurations, consumer group offsets and ACLs across the trust boundary into your self-managed Kafka cluster. Check that the mirror connectors can reach the Confluent Cloud endpoints and that offsets stay in step before you cut over. Cluster Linking is not in this path, because it can only point into Confluent Cloud.
MirrorMaker 2 pulls from Confluent Cloud into your own Kafka cluster; Cluster Linking cannot run this direction.
How the migration differs by cluster size and starting point
A single Confluent Cloud cluster with a small set of topics is the simplest case. One MirrorMaker 2 deployment can usually cover the topics, topic configurations, consumer group offsets and ACLs, and the work is mostly about sequencing the cutover. Because there is one source and one destination, you can run one replication flow, verify topic counts and offsets, and move consumers group by group.
- Replication scope: MirrorMaker 2 replicates topic data, topic configurations, consumer groups with offsets and ACLs between clusters, so confirm each of these in your own test run.
- Runtime choice: Decide between a dedicated MirrorMaker cluster started with
bin/connect-mirror-maker.shand an existing Kafka Connect cluster. - Target version: Choose a supported Apache Kafka release from the downloads page and plan for KRaft mode, since Kafka 4.0 supports only KRaft.
- Java runtime: Brokers, Kafka Connect and tools require Java 17 on Kafka 4.x.
- Cutover order: Move low-risk consumers first, then producers, then the remaining consumers.
Confirm the exact Confluent Cloud cluster type and your topic count before choosing the replication runtime, since those drive the test plan.
A multi-region estate usually has several Confluent Cloud clusters, with producers and consumers in more than one region. Each cluster pair needs its own MirrorMaker 2 flow, and you must decide whether replicated topics keep the same names and where consumer groups resume after cutover. Replicating in both directions during the transition can create loops or duplicates, so the topology needs to be drawn before any flow starts.
- One flow per source cluster: Plan a separate replication path for each Confluent Cloud cluster, and document which region hosts each destination cluster.
- Topic naming: Confirm how replicated topics are named in the target so consumers do not read the same data twice.
- Offset state: Check that consumer group offsets replicate for every region you cut over, not only the primary.
- Network paths: Confirm connectivity between regions and to Confluent Cloud, including firewall rules and TLS configuration.
- Staged cutover: Move one region at a time and keep a rollback path for each.
Ask your network and platform teams to confirm inter-region bandwidth and firewall policy before you size the replication runtime.
A team that depends on Schema Registry and many managed connectors has the largest set of items that MirrorMaker 2 does not move. MirrorMaker 2 covers topics, configurations, offsets and ACLs, but schemas and connector configurations must be exported and rebuilt separately. Schema Registry and some connectors are under the Confluent Community License, so the replacement components need their own licensing review before they are deployed.
- Schemas: Export subjects, versions and compatibility settings from Schema Registry and load them into your chosen registry before producers switch.
- Connectors: Inventory each managed connector, then map it to an Apache-2.0 Kafka Connect connector or a substitute, and rebuild its configuration.
- Kafka Connect runtime: Kafka Connect ships with each Kafka release and runs in standalone or distributed mode, managed through a REST API, so plan the worker deployment.
- Offset handling: Kafka Connect manages connector offsets automatically, but source connectors must be checked for duplicate or missing records during cutover.
- Licensing review: Confirm which components you run are under the Confluent Community License and whether your use is permitted.
Check with your compliance team which Confluent Community License components you use, and ask for a connector inventory before setting the cutover date.
A team moving from an older self-managed Kafka estate has an additional prerequisite before any Confluent Cloud data can land on it. Apache Kafka 4.0 supports only KRaft mode and removed ZooKeeper mode, so ZooKeeper-based clusters must migrate to KRaft before they upgrade to 4.x. The Kafka upgrade notes also recommend that KRaft clusters older than 3.3.x upgrade to 3.9.x before moving to 4.x, so the path depends on the version you run now.
- ZooKeeper clusters: Migrate to KRaft on a supported version before attempting any 4.x upgrade.
- Older KRaft clusters: Clusters older than 3.3.x should move to 3.9.x first, then to 4.x.
- Rolling upgrades: Rolling upgrades are supported from each release in the past year to the latest version, so confirm your current release sits within that window.
- Java runtime: Move brokers, Kafka Connect and tools to Java 17, and check that clients meet the Java 11 minimum.
- Security configuration: Review SSL or SASL listeners and ACL behavior, since StandardAuthorizer restricts resources without ACLs to super users unless configured otherwise.
Review your current Kafka version and ZooKeeper status first, because the upgrade path determines whether the migration can start on the existing estate.
What drives the cost and duration of the move
This table lists the factors that change how long the move from Confluent Cloud to self-managed Kafka takes and what it costs in engineering time. Read each row as a driver: the first column names it, the middle column explains why it changes effort, and the last column gives the step that keeps it under control.
| Driver | Why it changes effort | How to keep it down |
|---|---|---|
| Topics and partitions | MirrorMaker 2 must create and keep in sync every replicated topic and partition, and partition counts must match so keys keep their ordering. Large counts increase replication tasks and monitoring. | Inventory topics first, retire unused ones, and confirm which partition counts must be preserved before replication starts. |
| Data volume and retention | Every replicated byte crosses the network and is written again on the target brokers. Longer retention means more history to copy and more disk to provision. | Replicate only the retention window consumers need, and decide whether older data stays in Confluent Cloud as an archive. |
| Consumer groups and offsets | MirrorMaker 2 can carry consumer group offsets, but each group must be checked for offset translation and a clean cutover point. Many groups mean more verification. | Group consumers by owning team, and cut over one group at a time with a documented offset check. |
| Client languages and applications | Each client library and runtime has its own configuration for bootstrap servers, security and serializers. Mixed stacks need separate changes and tests. | Standardize client configuration templates and test each language's producers and consumers against the new cluster before cutover. |
| Schema Registry and connectors | Schemas, subjects and compatibility settings must be exported and loaded, and Confluent Community License components such as Schema Registry and some connectors need replacements or self-managed deployments. | Count subjects and connectors early, export schemas with their compatibility modes, and confirm Apache-2.0 substitutes for each connector. |
| Security model (SSL or SASL) | Kafka supports SSL and several SASL mechanisms, including SCRAM-SHA-512 and OAUTHBEARER, and ACLs must be recreated in the target. Certificate and credential rollout touches every client. | Pick one mechanism and certificate authority before migration, plan certificate rotation, and migrate ACLs with a verified mapping. |
| Parallel run duration | Both clusters run during replication, and consumers move in stages. The longer the parallel period, the more duplicate infrastructure and operational checks you pay for. | Set exit criteria for each consumer group, such as lag and error thresholds, so the parallel period ends on evidence. |
| On-call team readiness | Your team, not a vendor, carries incident response for brokers, MirrorMaker 2 tasks and certificates once cutover completes. Gaps in Kafka operations skills extend the project. | Train on-call staff on broker, replication and upgrade runbooks before cutover, and confirm who owns each alert. |
What usually goes wrong and how to prevent it
Most failed Confluent Cloud exits do not fail on the copy itself. They fail at the edges: consumer positions, access rules, schemas, connectors, runtime versions and the timing of the switch. Each card below names one of these points and the check that catches it before consumers move.
Offsets that do not line up
MirrorMaker 2 copies consumer group offsets, but the translated offsets only match the source partitions once replication has caught up. If producers keep writing to Confluent Cloud during cutover, consumers on the new cluster can resume at the wrong position. Before the switch, compare lag and end offsets per partition on both clusters and confirm each consumer group reads from the position you expect.
Kafka geo-replication docsACLs left at default
In KRaft clusters, the StandardAuthorizer stores ACLs in the metadata log, and resources without ACLs are limited to super users unless allow.everyone.if.no.acl.found is set to true. Replicated ACLs can be incomplete, and applications that worked on Confluent Cloud may fail with authorization errors on day one. Build an access matrix from the source ACLs, test each service account on the target, and decide deliberately whether the default should stay restrictive.
Kafka authorization docsSchema formats lost in export
Schema Registry sits under the Confluent Community License, so the target needs its own schema registry or a substitute. Schema IDs, compatibility modes and subject names must survive the move, or producers and consumers will serialize against schemas that no longer resolve. Export every subject with its versions and compatibility setting, then confirm that a sample record from each topic deserializes on the new side.
Connectors tied to Community License components
Some connectors and components that run in Confluent Cloud or Confluent Platform carry the Confluent Community License, which restricts offering them as a competing hosted service. Inventory every connector and REST Proxy or ksqlDB dependency before cutover. Replace each one with an Apache-2.0 connector or a licensed alternative, and test its offsets and error handling, since Kafka Connect manages offsets for connectors that use it.
Confluent license FAQJava version gaps
Since Kafka 4.0, brokers, Kafka Connect and tools require Java 17, and clients and Kafka Streams applications require at least Java 11. Client libraries and Streams apps built for older runtimes can fail at startup or during rebalancing after the move. Inventory the JVM version of every producer, consumer and Streams job, upgrade where needed, and run each one against the target before it carries production traffic.
Cutting over before consumers are verified
Teams often move producers first and discover consumer problems afterward, when messages already sit on the wrong side. Illustrative example: a producer switches to the new cluster while a downstream consumer still reads from Confluent Cloud, and records split across two clusters. Verify each consumer on the target with replayed traffic, confirm lag returns to zero, and keep both clusters running until every consumer group has been moved and checked.
Questions buyers ask before moving Confluent Cloud to Apache Kafka
How long does a migration from Confluent Cloud to Apache Kafka take?
The duration depends on how many topics, consumer groups, schemas and connectors you run, how much data must be replicated before cutover, and how many teams own producers and consumers. Replication time scales with data volume and cross-cluster bandwidth, and the cutover itself depends on how many applications can switch on a planned window. No general duration applies, so ask any provider to base the timeline on an inventory of your own topics and consumers. Expect the largest share of time to go to application testing and coordination rather than to MirrorMaker 2 itself.
Can our own team migrate from Confluent Cloud without outside help?
Yes, a capable platform team can do it, provided it has people who run Kafka brokers, understand Kafka Connect and can own TLS, SASL and ACL configuration on the new cluster. The Apache Kafka project documents MirrorMaker 2 in detail, so the tooling is available without a vendor. Outside help is most useful where the team has no recent Kafka operations experience, where many teams must be coordinated, or where a security review requires independent evidence. Decide this by comparing your in-house Kafka skills with the scope of your inventory.
What work does the migration require from our engineers?
The work falls into four groups: inventory, target cluster build, replication and application cutover. Inventory covers topics, partitions, retention, consumer groups, ACLs, Schema Registry subjects and connectors. The target build means running Apache Kafka in KRaft mode on Java 17 or later, configuring listeners, TLS and SASL, and deciding how Kafka Connect will run. Replication uses MirrorMaker 2, and cutover needs producer and consumer configuration changes plus rollback steps. Each application team needs to test its own client settings against the new bootstrap servers.
Can Cluster Linking move our data out of Confluent Cloud?
No. Confluent's documentation states that a cluster link can only be created with a Dedicated or Enterprise Confluent Cloud cluster as the destination, so Cluster Linking moves data into Confluent Cloud, not out to a self-managed cluster. To leave, you need another replication tool, and MirrorMaker 2 is the Apache Kafka option that replicates topics, configurations, consumer group offsets and ACLs between clusters. Read the Cluster Linking documentation to confirm the current destination rules for your plan before you plan around them.
How do we keep both clusters running during the move?
Run MirrorMaker 2 from Confluent Cloud to the new Kafka cluster so both clusters hold the same data while consumers move in groups. Producers usually switch first or last depending on ordering needs, and consumers move after their offsets have been replicated and checked. Keep the source cluster readable until every consumer group has moved and the rollback window has closed, because reverting depends on it. Monitor replication lag and consumer offsets on both sides throughout. Ask your team to define in advance which writes are allowed on each cluster to prevent duplicate or split data.
What should a migration quote from a provider include?
A useful quote lists the scope as a written inventory: topics, consumer groups, ACLs, schemas, connectors and the applications each one serves. It should name the target architecture, including broker count, storage, KRaft setup, TLS and SASL choices, and the Kafka Connect deployment model. It should itemize the replication runbook, cutover support, rollback plan, testing and documentation, plus whether monitoring and upgrades after cutover are included or sold as a separate retainer. Ask which items are one-time work and which recur, and what changes the price if the inventory grows.
How does Apache Kafka licensing differ from Confluent's components?
Apache Kafka is licensed under the Apache License 2.0 and has no paid edition from the project itself. Confluent's Community License FAQ states that some components, including Schema Registry, REST Proxy, ksqlDB and some connectors, use the Confluent Community License, which forbids offering them as a hosted service that competes with Confluent. Self-hosting for your own internal use is a different question from offering a competing hosted service, so ask counsel to confirm how the license applies to each component you plan to run. Replace components with Apache-licensed alternatives where the license terms conflict with your plans.
Does Kafka Connect replace Confluent's managed connectors?
Kafka Connect replaces the framework, but not every connector. Kafka Connect is Apache-2.0 licensed, runs in standalone or distributed mode, and is administered through a REST API, with no graphical interface described in its overview. Connector offsets are managed automatically, which removes some custom work. You still must install, size and patch the workers, choose a connector for each source or sink, and check each connector's license, since some Confluent connectors carry the Confluent Community License. Confirm each connector's license and operational support before you commit to a replacement.
How DeployOpen scopes, runs and supports the migration
DeployOpen plans, implements, hardens, backs up, documents and supports self-hosted Apache Kafka inside your own infrastructure, whether that is your cloud accounts, data centers or an air-gapped network. Most engagements are fixed-scope, and the scope, deliverables and timelines are agreed in writing before any work starts. A quote follows from that written scope, so the first step is a discovery conversation that inventories what actually has to move: topics, consumer groups, ACLs, Schema Registry subjects, connectors and the producers and consumers that depend on them. DeployOpen does not publish a price list, and the reader should expect the quote to reflect the items on that inventory rather than a generic package.
The written scope should name the decisions that drive the work. These include the target Kafka release (the supported releases are listed on the Kafka downloads page, and the upgrade notes require KRaft mode on 4.x), the MirrorMaker 2 topology (a dedicated cluster or an existing Kafka Connect cluster), the TLS and SASL mechanism for each listener, how allow.everyone.if.no.acl.found is set, the cutover window for each consumer group, and the rollback plan if a consumer group fails to resume. Ask for each of these to be a named deliverable with an acceptance check, such as a documented offset comparison or a replayed test topic, so that completion can be verified by your own team rather than by assertion.
Ongoing support is handled separately. Upgrades, certificate rotation, backup verification and continuous testing are available as retainers, and they matter because Kafka's time-based release plan means a cluster has to be kept within the rolling upgrade path to stay supported. Confirm with DeployOpen during scoping which items sit inside the fixed project and which move to a retainer, and ask for the response expectations to be written into that agreement. DeployOpen supports the work and prepares the evidence your compliance team asks for, but it does not issue audit reports or certifications; those come from independent auditors and certification bodies.

