How to export your data from Confluent Cloud

Cluster Linking only moves data into Confluent Cloud, so leaving means replicating topics, offsets and ACLs with MirrorMaker 2 and moving schemas and connectors by hand. This guide covers what exports, what does not, and the order of work.

On this page

Can you export your data from Confluent Cloud, and what does not move?

Yes, topic data, consumer group offsets and ACLs can be copied out of Confluent Cloud, but not with Cluster Linking. Confluent's documentation says Cluster Linking only creates links whose destination is a Dedicated or Enterprise Confluent Cloud cluster, so it can move data in but not out to a self-managed cluster. For an exit, the replication tool is MirrorMaker 2, which runs on Kafka Connect in Apache Kafka and replicates topics with their configuration, consumer groups with offsets, and ACLs between clusters. If your driver is an eCKU bill change, a renewal date or a residency requirement, start by confirming that your target Kafka release and Java runtime meet the requirements in the upgrade notes, and that your team can operate the MirrorMaker 2 pipeline before any data moves.

MirrorMaker 2 does not cover everything a Confluent Cloud estate contains. Schemas in Schema Registry must be exported separately through its API and loaded into your self-managed registry, and you should confirm how your registry handles compatibility settings and subject IDs, since consumers and producers depend on them. Connector configurations are not replicated, so you need to inventory every managed connector, record its settings and secrets references, and rebuild it on self-managed Kafka Connect, where connector offsets are tracked as Kafka topics. Confirm which Confluent Community License components you run, because Schema Registry, REST Proxy, ksqlDB and some connectors fall under that license and need an Apache-2.0 or self-built substitute. Keep both clusters running through the cutover: replicate, validate offsets and lag, move consumers group by group, and keep Confluent Cloud available until every consumer and connector has been confirmed on the new cluster.

Which Confluent Cloud data has a documented export path

This table maps each kind of Confluent Cloud data to the export method, target format and limits that the supplied documentation supports. Read it as a checklist: rows marked with a documented tool can be moved with that tool, while rows that depend on your Confluent plan or on connector vendors need confirmation before you plan the cutover.

Data typeExport methodFormat or target and limits
Topic recordsMirrorMaker 2 replicates topic data from the Confluent Cloud cluster to a self-managed Kafka clusterRecords copied into target topics; MirrorMaker 2 runs on Kafka Connect, so Kafka 4.x Connect needs Java 17. Supported releases are 4.3.1, 4.2.2 and 4.1.2
Consumer group offsetsMirrorMaker 2 replicates consumer groups with their offsetsOffsets carried to the target cluster so consumers can resume there; confirm offset translation behavior for your MirrorMaker 2 version before cutover
Topic configurationMirrorMaker 2 replicates topic configuration along with the topic dataPartition counts and topic settings copied to the target; check settings that Confluent Cloud manages for you and set them explicitly on the target
ACLsMirrorMaker 2 replicates ACLs between clustersOn KRaft clusters, the StandardAuthorizer stores ACLs in the metadata log; resources without ACLs are restricted to super users unless allow.everyone.if.no.acl.found is set
Schema Registry schemasCustomer-run export through the Schema Registry API, then import into the self-managed registrySchemas and compatibility settings moved as API payloads; the Confluent Community License covers Schema Registry, so confirm the export method for your plan in Confluent documentation
Connector configurationsNo documented direct export of managed connector settings in the supplied facts; re-create connectors on Kafka Connect through its REST APIConfigurations are rebuilt as Apache-2.0 Kafka Connect connectors; confirm each connector's license and the settings your Confluent connector uses before you rebuild it

What Confluent Cloud will not export for you

Leaving Confluent Cloud is not a single export. Some pieces move through tools you run yourself, some have no export path at all, and some must be recreated by hand on the new cluster. The cards below mark where those gaps sit so you can plan the work before the renewal or cutover date.

Cluster Linking only moves data in

Cluster Linking cannot target a self-managed cluster. Confluent documents that a link can only be created when its destination is a Dedicated or Enterprise Confluent Cloud cluster. Leaving therefore needs a tool that runs outside Confluent, most often MirrorMaker 2 on Apache Kafka, which replicates topics, configurations, consumer group offsets and ACLs. Confirm with Confluent whether any current feature changes this direction before you rely on it for an exit.

Cluster Linking docs

Community-licensed components need self-running

Schema Registry, REST Proxy, ksqlDB and some connectors fall under the Confluent Community License. That license forbids offering them as a hosted service that competes with Confluent, but your organization can run them for its own internal use. Check which components your clusters actually use, confirm the license terms for your use case with Confluent or counsel, and plan where each one will run after the move.

Community License FAQ

Connector secrets must be re-entered

Managed connector configuration and credentials do not travel with the topics. Source and sink connectors hold database passwords, API keys and service account references that Confluent stores on its side. Export the connector definitions you keep, then supply every secret again in your own secrets store. Connector offsets are a separate question: Kafka Connect on your side tracks its own offsets, so decide whether each sink resumes from the old position or reprocesses data.

ksqlDB queries and state need rebuilding

Persistent ksqlDB queries and their state stores have no direct export format. You can capture the SQL text of streams, tables and persistent queries from the cluster, but the materialized state is rebuilt when the queries run again. Plan for a replay window, confirm which output topics the queries write, and test that downstream consumers accept any change in record timing or ordering.

Schemas and compatibility rules

Schema Registry exports need the subject versions and compatibility settings, not only the latest schema. Pull every subject and version, along with per-subject compatibility modes, and load them in the same order on the new registry. Confirm that producers and consumers resolve the same schema IDs, because a mismatch breaks deserialization even when the topics copy cleanly.

Access rules and service accounts

Confluent role bindings and API keys do not convert into Kafka ACLs. Map each service account to the topics, consumer groups and transactional IDs it uses, then write those ACLs on the target cluster. The Kafka authorization model denies access to resources without ACLs unless configured otherwise, so a missing rule blocks consumers at cutover rather than failing visibly during testing.

Kafka authorization docs

Why Cluster Linking cannot be the exit route

Cluster Linking is the first tool many teams reach for, and it cannot be the exit route. Confluent's documentation states that a cluster link can only be created when its destination is a Dedicated or Enterprise Confluent Cloud cluster. That means Cluster Linking moves data into Confluent Cloud, not out to a cluster you run yourself. Before you plan a cutover, confirm this limit against the current Cluster Linking documentation for your cluster type, because it is the constraint that shapes every other decision on this page.

The practical consequence is that the exit has to use Kafka-native replication that your team runs and controls. In practice, that means MirrorMaker 2 running against a self-managed Apache Kafka cluster that you stand up before cutover. The target cluster, its brokers, its KRaft metadata, its TLS listeners and its authorization settings all have to exist and be tested while the source cluster is still serving production traffic. Ask your platform team to confirm who will operate the target cluster, where it will run, and how its certificates and ACL model will be managed, since none of this is provided by Confluent once you leave.

Plan the target cluster as a dependency of the migration, not as an afterthought. Run a short replication test with representative topics, check that consumer group offsets and ACLs arrive as expected, and confirm that your Kafka version and Java runtime meet the requirements in the Kafka upgrade notes for the release you choose. The cluster also has to outlive the migration, because it becomes the system your consumers depend on once the Confluent Cloud subscription ends. Budget time for that operating model before you set a cutover date.

Export sequence: from inventory to verified cutover

This sequence moves topics, consumer offsets, ACLs, schemas and connectors out of Confluent Cloud into a self-managed Apache Kafka 4.x KRaft cluster, with a check at each step so consumers switch only after the data and metadata match.

  1. Inventory topics, ACLs, schemas and connectors

    The platform or streaming team lists every topic with its partition count, replication settings and retention, every consumer group and its offsets, every ACL, every schema subject in Schema Registry and every connector with its full configuration. Keep the connector configs in version control, with secrets removed. This step is done when the inventory is reviewed by the owners of each producing and consuming application, and each item is marked as migrate, rebuild or retire. Confirm with your Confluent account team which Confluent-managed connectors and features your cluster uses, because some have no direct Apache Kafka equivalent and must be rebuilt.

  2. Confirm the source and target Kafka versions

    Check whether any cluster you are migrating from runs in ZooKeeper mode. Apache Kafka 4.0 supports only KRaft mode and ZooKeeper mode has been removed, so ZooKeeper-based clusters must migrate to KRaft before upgrading to 4.x. Kafka's upgrade notes also recommend that KRaft clusters older than 3.3.x upgrade to 3.9.x before moving to 4.x. Select a supported target release from the Kafka downloads page, currently 4.3.1, 4.2.2 or 4.1.2, and plan Java 17 for brokers, Kafka Connect and tools, with at least Java 11 for clients and Kafka Streams applications. The step is complete when the target version and the Java runtime are approved and recorded in the change plan.

  3. Stand up the target KRaft cluster

    The infrastructure team deploys a Kafka cluster in KRaft mode on your own servers or Kubernetes, with TLS listeners and one of the SASL mechanisms the security overview documents, such as SCRAM-SHA-512 or OAUTHBEARER. Enable the StandardAuthorizer and decide deliberately how allow.everyone.if.no.acl.found is set, because without it resources with no ACLs are limited to super users. Create the topics with matching names and partition counts, and set up Kafka Connect as a separate cluster on a supported release. The step is verified when a test producer and consumer can connect over each listener, and an ACL check confirms that an unauthorized principal is denied.

  4. Configure MirrorMaker 2 for topics, offsets and ACLs

    The streaming team runs MirrorMaker 2, which is built on Kafka Connect, from the target side with the Confluent cluster as the source. It replicates topic data and configuration, consumer groups with their offsets, and ACLs. Start with a limited set of non-production topics, then widen the topic filter in stages. Confirm with your Confluent team that the credentials and network path allow the source reads, and check any cross-zone or egress charges on the Confluent side. The step is complete when the replicated topics show continuous data flow and the synced consumer offsets match the source group positions within the expected lag.

  5. Export schemas and rebuild connector configurations

    Export every schema subject from Schema Registry through its API, keeping subject names, versions and compatibility settings, and load them into the target registry or serializer setup you have chosen. Schema Registry, REST Proxy and ksqlDB are under the Confluent Community License, which forbids offering them as a hosted service that competes with Confluent, so review licensing for internal use before you deploy them. Rebuild each connector on Kafka Connect using Apache-2.0 connectors where available, deploy the configurations through the REST API, and start them in a paused state. The step is verified when each connector reports its tasks as running in a test environment and its output matches a sample taken from the Confluent connector.

  6. Verify counts, offsets, lag and schema compatibility

    Compare message counts and the latest offsets per partition between source and target for each topic, and confirm that consumer group lag on the target stays within the level your application owners set. Test that existing producers' schemas still pass compatibility checks against the migrated subjects, and that consumers can deserialize a sample of recent messages. Keep the MirrorMaker 2 replication running until these checks pass repeatedly over a period your team defines, because a single clean comparison does not prove a stable copy. The step is complete when the owners of each topic sign off on the comparison report.

  7. Cut producers over, then consumers

    Move producers first, changing bootstrap servers and credentials to the target cluster in a controlled window, while consumers continue reading from the source until the new data has arrived. Once producers are stable on the target, stop the replication flow for the moved topics, then move consumers to the target using the synced offsets, starting from a group that has been checked against the source. Keep the source cluster available, read-only where possible, for an agreed fallback period. The cutover is verified when the target shows production traffic, consumers are processing without growing lag, and no application still points to the Confluent endpoints.

How MirrorMaker 2 moves data out of Confluent Cloud

The flow starts at the Confluent Cloud source cluster, where MirrorMaker 2 runs on Kafka Connect in your network and reads topics, consumer group offsets and ACLs. It writes them into the self-managed target Kafka cluster inside your trust boundary, while schemas are exported separately from Schema Registry and imported into the target. Consumers and producers cut over only after you confirm that replicated offsets and schemas match the source. Check replication lag and the mm2 consumer offsets before moving any application.

Data and schema paths from Confluent Cloud into a self-managed Kafka cluster.

How long to keep both clusters running while consumers move

Consumers whose processing is idempotent, such as cache warmers, search indexers that upsert by key, or analytics loads that deduplicate on a business key, can tolerate some duplicate delivery during cutover. For these, the overlap window is mostly set by how far behind the new cluster is allowed to run before you switch traffic. MirrorMaker 2 copies consumer group offsets, so a consumer that restarts on the target can resume near where it stopped on the source, but the offset translation is only as current as the last checkpoint. Replication lag means the target trails the source by some amount at any moment, and a consumer that moves before that lag closes will reprocess records it already handled.

  • Measure replication lag per topic: Track the lag of the MirrorMaker 2 flows over at least one full business cycle, not one quiet hour.
  • Confirm checkpoint freshness: Check that the checkpoint topic is advancing so translated offsets are not stale when you cut over.
  • Plan for duplicates: Confirm each consumer's deduplication logic and how it handles a replayed window.
  • Cut over after lag settles: Move a consumer once its lag stays near zero under normal load, then keep the source readable for a rollback period.

Before cutover, ask each consumer owner to state in writing how much replay they can absorb.

Checks that prove the export is complete

Copying topics is not the same as finishing the export. Each check below compares one part of the Confluent Cloud estate against its self-managed counterpart, so a gap in data, offsets, permissions, schemas or connector output shows up before consumers move. Run them in order, and keep the results as evidence for the cutover decision.

Topic message counts and checksums

Compare end offsets and record counts per partition between the source topic and its MirrorMaker 2 copy once replication has caught up. Use the Kafka consumer group and offset tooling to read the high watermark on each side, then hash a sampled or full read of the payloads, since matching counts alone can hide dropped or reordered records. Investigate any partition where counts differ, and confirm that topic configurations such as retention and cleanup policy were replicated as well.

Consumer group offset translation

MirrorMaker 2 translates committed consumer group offsets into the target cluster, but the translated values are only as good as the replication lag at the time of the snapshot. Compare committed offsets per group and partition on both clusters after translation, and confirm the lag each group shows on the target before stopping consumers on the source. Treat a group that is missing or behind as a blocker, not a cosmetic issue.

ACL parity by principal and resource

Export the ACL list from Confluent Cloud and from the target cluster with the Kafka ACL tooling, then compare entries by principal, resource type, resource name, pattern type, operation and permission. Remember that the target's StandardAuthorizer denies resources with no ACL to all but super users unless allow.everyone.if.no.acl.found is set to true, so a missing ACL fails closed. Record every intentional difference, since principal names often change when identity moves to a new provider.

Schema compatibility against the target registry

Schema Registry is licensed under the Confluent Community License, so it has to be replaced or self-hosted under that license's terms. Register each exported subject in the target registry, then check that schema IDs, versions and compatibility modes match the source. Serializers that cache schema IDs will break if IDs change, so test producers and consumers against the target registry with real records before any cutover.

Connector output diffs in a test environment

Run each exported connector configuration on Kafka Connect in a test environment, pointed at a copy of the source data, and diff the output against what the Confluent Cloud connector wrote. Connect manages offsets for connector developers, so compare the offset state and the sink records, not only the row counts. Expect differences in configuration keys and in managed features that Connect does not replicate, and record each one for the connector substitution work.

Rollback plan and parallel running

Write down the conditions that send traffic back to Confluent Cloud, who can make that call, and how long the source cluster stays available to take it. Keep MirrorMaker 2 running in the reverse direction during the window if producers can switch back, and confirm that the source cluster's topics, ACLs and offsets remain intact until consumers have processed past the cutover point. A rollback you have not rehearsed is a plan on paper only.

Questions teams ask before exporting from Confluent Cloud

How much effort does exporting from Confluent Cloud take?

Effort depends mostly on how many topics, how much throughput, how many schemas and connectors you run, and how much Kafka operations experience your target team has. Topic and consumer group counts drive the mirroring and validation work, schema and connector counts drive the rebuild work, and throughput drives how long both clusters must run in parallel. One-time costs include building the MirrorMaker 2 configuration, moving schemas and connector configs, testing consumers and planning the cutover. Recurring costs are the self-managed brokers, storage, network, monitoring and on-call time that replace the managed service. Ask any provider to split the quote into these one-time and recurring lines.

Can our own team export from Confluent Cloud without outside help?

Many teams can, provided they already operate Apache Kafka or have engineers who can learn it with time to spare. The work involves MirrorMaker 2 on Kafka Connect, KRaft cluster operations, TLS and SASL configuration, schema export, connector rebuilds and a staged cutover. Confluent's own tooling cannot move data out of Confluent Cloud, so the export depends on open-source tools that your team must configure, test and monitor. An honest skills check should cover Kafka administration, security configuration and incident response. If those gaps are large, an implementation partner can plan and run the migration while your team keeps ownership of the result.

What do we need to provide before the export starts?

Plan to supply four things before any work starts. First, administrative access to the Confluent Cloud clusters, Schema Registry and connector settings, with read access to the configuration you need to inventory. Second, a complete ACL inventory and a list of consumer groups, since MirrorMaker 2 replicates ACLs and offsets and you must know which ones matter. Third, a named owner for each consuming application who can test against the new cluster. Fourth, a signed-off cutover window agreed with the business owners of every producer and consumer. Missing any of these usually extends the parallel-running period.

How long should we keep both clusters running?

Keep both clusters running until every producer and consumer has moved, offsets have been verified on the target, and you have a tested rollback path. The period depends on how many applications need code or configuration changes, how often they are deployed, and how much data you need to reconcile. Apache Kafka MirrorMaker 2 can keep topics and consumer group offsets in step during the overlap, but you should confirm lag and replication health continuously rather than assume it. Set the overlap length in the written plan with explicit exit criteria, not a calendar guess.

Can we run Confluent Community License components ourselves?

Some can, but the license matters. Schema Registry, REST Proxy, ksqlDB and some connectors are under the Confluent Community License, which forbids offering them as a hosted service that competes with Confluent. Running them inside your own organization for your own use is the common case, yet you should have legal counsel confirm that your use fits the license terms before you deploy. Apache Kafka itself is under the Apache License 2.0. Where a Community-licensed component is hard to replace, plan a substitute such as an Apache-2.0 schema registry or Kafka Connect connectors during the export.

What should we ask for in a written quote for this export?

Ask for a fixed scope that lists every topic group, schema, connector, consumer application and ACL set in the migration, along with the environments covered. Request separate one-time and recurring line items, the testing approach for each consumer, the cutover and rollback plan, and the criteria that end the parallel-running period. Also ask who handles on-call during the overlap, how documentation and handover are delivered, and which items are excluded. Quotes should state assumptions about throughput and connector count so you can check them against your own inventory. DeployOpen issues quotes from a written scope rather than a published price list.

Which parts of Confluent Cloud can be exported directly to a self-managed cluster?

Topic data, consumer group offsets and ACLs can be replicated with MirrorMaker 2, which is built on Kafka Connect. Schemas, connector configurations and Community-licensed components need separate export and rebuild steps, because they do not come across in the replication flow. Cluster Linking can only create links whose destination is a Dedicated or Enterprise Confluent Cloud cluster, so it cannot help with this direction. Your inventory should mark each item as replicated, exported or rebuilt so nothing is missed at cutover.

What a fixed-scope export engagement covers

A fixed-scope export engagement starts with a written inventory, not a migration. DeployOpen's first deliverable is a list of what has to move out of Confluent Cloud: every topic with its partition count, retention and cleanup settings, every consumer group and its committed offsets, every ACL, every schema subject in Schema Registry, and every connector with its configuration. Each item is tied to an owner and a target. Scope, deliverables and timelines are agreed in writing before any work begins, so the client knows which connectors, schema compatibility modes and client applications are in and which are out. The inventory also decides the target: whether the destination is Apache Kafka in KRaft mode on the client's own servers, a cloud account the client controls, or an air-gapped network. Confirm with the vendor and your own environment which Confluent-licensed components you actually run, because Schema Registry and some connectors carry the Confluent Community License and need a substitute.

The second phase covers the target build and the replication path. DeployOpen builds the self-managed cluster in the client's infrastructure, configures TLS and SASL authentication, sets up authorization, and then configures MirrorMaker 2 to mirror topics, consumer group offsets and ACLs from the source cluster. Verification is written into the scope: message counts and checksums per topic, offset lag per consumer group, and a test of each ACL against a sample client identity. Cutover support covers the order of producers and consumers moving, the rollback path, and the period in which both clusters run side by side. The client should ask for the length of that overlap, the criteria that close it, and who signs off on each step. Pricing is not published. A quote follows from the written scope, and the inventory is what makes that quote accurate.

How DeployOpen scopes and delivers a Confluent Cloud exit

DeployOpen plans and implements self-hosted Apache Kafka environments inside your own infrastructure, and treats the export from Confluent Cloud as a written, fixed-scope piece of work. The engagement covers topics, consumer offsets, ACLs, schemas and connectors, with testing and handover documented before any cutover.

How we scope

  • Inventory every Confluent Cloud cluster, topic, consumer group, schema subject and connector that must move.
  • Agree in writing which data, configurations and offsets replicate with MirrorMaker 2 and which items are rebuilt by hand.
  • Confirm the target Apache Kafka version, KRaft mode setup and Java runtime requirements with your platform team before work starts.
  • Define the parallel-run window, rollback conditions and sign-off owners so the duration is agreed, not assumed.

How we build

  • Deploy the target Kafka brokers and MirrorMaker 2 inside your accounts, data centers or air-gapped network.
  • Configure TLS and SASL authentication, and map Confluent Cloud ACLs to the Kafka authorizer model.
  • Export Schema Registry subjects and rebuild connectors on Apache-2.0 Kafka Connect, reviewing each connector config.
  • Test replication lag, offset translation and consumer restarts in a staging environment before any production traffic moves.

How we hand over

  • Deliver runbooks for replication monitoring, cutover steps, rollback and decommissioning the Confluent Cloud resources.
  • Document the security configuration, ACL model and certificate locations so your security team can review them.
  • Provide a retest of the controls and the replication path after cutover, with findings and fixes recorded in writing.
  • Walk your operators through the Kafka Connect REST API and day-to-day administration before the engagement closes.

How we support

  • Ongoing support, upgrades and continuous testing are available as a retainer after handover.
  • Plan Kafka version upgrades against the supported release list and rolling upgrade path before each change.
  • Keep certificate rotation, connector updates and backup procedures current as your estate changes.
  • Ask for a quote built from the written scope, which sets out the work, deliverables and support terms.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.