Kafka topics reach Apache Iceberg tables in six ways: the Apache Iceberg Kafka Connect sink, Confluent Tableflow, Amazon Data Firehose, writers built into the broker (Amazon MSK streaming tables, Redpanda Iceberg topics), Flink or Spark streaming jobs, and a managed pipeline. All six commit in batches, because an Iceberg table changes only when a writer commits a snapshot. The choice comes down to which Kafka you run, who operates the writer, how often it commits and who compacts the files. The sink and Tableflow both commit about every five minutes by default. Keys and tombstones then decide whether the tables hold change history or current rows. Estuary covers this route with a Kafka capture that reads topics from Kafka, Confluent Cloud or Amazon MSK continuously, and two Iceberg materializations that commit on a schedule: Apache Iceberg merges through Spark on EMR Serverless, and Amazon S3 Iceberg appends.
Key Takeaways
Kafka topics reach Iceberg six ways: the Kafka Connect sink, Confluent Tableflow, Amazon Data Firehose, broker-native Iceberg writers, Flink or Spark jobs, and a managed pipeline.
Every route commits in batches, because an Iceberg table changes only when a writer commits a snapshot. The commit interval sets how fresh the table is.
The choice depends on which Kafka you run and who compacts files and expires snapshots. Tableflow needs Confluent Cloud, and Firehose needs Amazon MSK.
The Connect sink commits every 5 minutes by default and needs Kafka 2.5 or later for exactly-once delivery. Table auto-create and schema evolution are off by default.
Estuary reads any Kafka and either merges through Spark on EMR Serverless (every 30 minutes by default) or appends every 5 minutes. Neither connector compacts tables.
Choosing a Kafka to Iceberg method
Which Kafka you run and who maintains the tables narrow six routes to one or two.
Approach | Best fit | Freshness | Operational burden | Example implementation |
|---|---|---|---|---|
Kafka Connect sink | Any Kafka with Connect; 2.5 or later for exactly-once | Commits every 5 minutes by default | High: workers, the plugin on every node, a control topic; maintenance runs separately | Apache Iceberg Kafka Connect sink |
Confluent Tableflow | Confluent Cloud only; topics need key and value schemas | About every 5 minutes, per Confluent | Low: Tableflow compacts files and manages snapshots | Tableflow, to Iceberg or Delta Lake (both open table formats) |
Amazon Data Firehose | Amazon MSK with IAM access control | Buffered by size and time; AWS’s example uses 1 MiB and 60 seconds | Managed; you compact self-managed tables, while S3 Tables maintains its own | Firehose stream with an Iceberg destination |
Broker-native Iceberg | MSK Express brokers, or Redpanda BYOC and BYOVPC on 25.1 or later | MSK: 5 to 15 minutes, default 10; Redpanda documents no interval | No connector; MSK compacts inline; Redpanda doesn’t backfill earlier data | MSK streaming tables; Redpanda Iceberg topics |
Flink or Spark streaming | Any Kafka, when records need transforming first | Your trigger or checkpoint interval; Iceberg’s Spark docs advise 1 minute or more | Highest: you run the job, its commits and maintenance | Iceberg’s Flink and Spark writers |
Self-managed Kafka, Confluent Cloud or MSK | Continuous capture; commits every 30 minutes (merge) or 5 minutes (append) by default | Low: configuration, plus EMR Serverless for merges; maintenance is yours | Estuary |
The setup section below walks through the Connect sink, the route that works with any Kafka. The commit mechanics, catalogs and maintenance around it apply to all six.
How Kafka to Iceberg commits work
Every route runs the same loop, and the routes differ in who runs it: a writer consumes the topic, packs records into Parquet files, and a commit publishes them to the table as a new snapshot through the catalog.
The consumer reads partitions and tracks offsets, so the partition count caps parallelism.
A commit adds the staged files as one snapshot, and readers see nothing until it lands.
The coordinator, in the Connect sink, centralizes commits. Tasks and the coordinator talk over a control topic (
control-icebergby default), and it commits everyiceberg.control.commit.interval-ms, 300,000 ms by default.Snapshots and files accumulate with every commit; Iceberg’s Spark docs warn that frequent commits create extra maintenance.

A shorter interval gives fresher tables and more small files; a longer one does the opposite.
Kafka requirements
Whichever writer you pick connects as an ordinary Kafka client, so network and auth must work from where it runs.
Where Kafka runs | Authentication and ports | Watch out for |
|---|---|---|
Self-managed Apache Kafka | SASL or TLS as configured on the brokers | Clients must reach every advertised broker address, not just the bootstrap one |
Confluent Cloud |
| Kafka and Schema Registry use separate API keys; topic auto-creation is off by default, so create the sink’s control topic yourself |
Amazon MSK | IAM on port 9098 (public 9198), or SASL/SCRAM on 9096 (public 9196) | Firehose needs IAM access control; MSK streaming tables need Express brokers |
Four topic properties decide how the Iceberg tables behave:
Format and schema. The Connect sink wants records converted to a struct or map by a Connect converter. Tableflow needs Avro, Protobuf or JSON Schema for both key and value; MSK streaming tables need a Glue Schema Registry schema.
Keys. Compacted topics delete a key with a null-value message, a tombstone. A writer that ignores keys appends it like any other row.
Partitions, which cap consumer parallelism.
Retention, which bounds how much history a new or rebuilt pipeline can read.
Iceberg requirements
Iceberg needs a catalog, reachable storage, tables that exist before the first commit, and a maintenance plan.
A catalog is what lets Athena, Spark, Trino or Snowflake find the tables. The sink supports REST, Glue, DynamoDB, Hadoop, Nessie, JDBC, Hive and BigQuery Metastore catalogs; Snowflake Open Catalog, Apache Polaris and S3 Tables are REST catalogs. For S3 storage, Apache’s Glue, Hive and Nessie examples set
iceberg.catalog.io-impltoorg.apache.iceberg.aws.s3.S3FileIO.Tables first. The sink’s
iceberg.tables.auto-create-enabledandiceberg.tables.evolve-schema-enabledare both off by default.Identifier case. Athena on S3 Tables needs lowercase table and column names, and Snowflake resolves unquoted identifiers as uppercase. Pick one before the first table exists.
Maintenance. Iceberg recommends expiring snapshots, removing old metadata files and deleting orphan files, and lists compaction as optional but the usual answer to small files. Glue table optimizers automate this for Glue tables, S3 Tables runs it by default, and otherwise you schedule compaction and snapshot expiry yourself.
Setting up Kafka to Iceberg replication
This walkthrough uses the Apache Iceberg Kafka Connect sink with a REST catalog. It assumes Kafka 2.5 or later, an existing topic named events, a configured Iceberg catalog and a control topic. Kafka creates the control topic when auto.create.topics.enable is true; otherwise create control-iceberg first.
Install the sink on every Connect node. From a checkout of the Apache Iceberg repository, build the connector, then copy the zip from
kafka-connect/kafka-connect-runtime/build/distributions/into a plugin directory. The olderdatabricks/iceberg-kafka-connectrepository says it is not maintained because the code moved to Apache Iceberg, so don’t use its releases.
Point the worker at the plugin directory. In the worker’s properties file, set
plugin.pathto a comma-separated list of directories, then restart the workers.
Create the destination tables in Spark SQL, since auto-create is off:
Configure the sink. Records with
typelistgo todefault.events_list,createtodefault.events_create, and others are skipped. Save this asevents-sink.jsonwith your catalog URI, credential and warehouse.
Launch the connector. The Connect REST API listens on port 8083 by default, and
POST /connectorstakesnameandconfig, as above.
A healthy connector reports RUNNING for the connector and every task:
Validate after one commit interval. Nothing is visible until the first commit, five minutes by default. Then read a table with PySpark, and check the snapshot list.
Check the failure paths. Produce a record with an unknown
typeand confirm it is skipped, then stop the connector, produce a few records and restart it to confirm it resumes and commits them without duplicates.
Skip the Connect Workers
Estuary reads your Kafka topics and commits them to Iceberg tables in your catalog on the schedule you set.
What happens after the initial load?
New records appear one commit at a time; until the next commit, readers see the previous snapshot.
Updates and deletes depend on how the writer treats keys. Plain event streams append. For change events the sink offers experimental transforms such as
DebeziumTransformandDmsTransform, and Firehose applies updates and deletes only with a unique key configuration.Tombstones delete rows only where a writer maps them to a delete; elsewhere a null-value message is one more row, or is dropped.
New fields. The sink adds missing columns only when
iceberg.tables.evolve-schema-enabledis on, and Iceberg schema updates are metadata changes that rewrite no data files. Tableflow follows the Schema Registry’s compatibility modes, and MSK streaming tables don’t support schema evolution.Replays. The sink’s exactly-once delivery relies on KIP-447, which is why it needs Kafka 2.5 or later.
Small files and snapshots grow with every commit, so schedule compaction and snapshot expiry from the first day.
Kafka to Iceberg data type mapping
Iceberg’s types are richer than JSON’s, so the writer’s choices matter most for nested data, time and money.
Kafka field | Iceberg column | Notes |
|---|---|---|
Nested object or Avro record |
|
|
Timestamp |
| Microseconds; format v3 adds nanosecond types, which Spark can’t read |
Time of day, UUID |
| Spark can’t read |
Money |
| Fixed-point and exact; a |
Decimals in Kafka messages
Sums over a double amount can drift. An Avro decimal or a string field converts cleanly to decimal; a producer that writes a price as a floating-point JSON number has already lost the exactness.
Performance, latency and Iceberg cost
Commit cadence sets freshness; file sizes, snapshot counts and compaction work follow from it.
Commit interval, file size and snapshots
Each commit publishes whatever arrived since the last one, so a quiet topic yields tiny files and a short interval multiplies them. Iceberg’s Spark guide recommends a trigger interval of one minute at the minimum. Lengthen the interval until files reach a useful size, and accept the freshness you give up.
Compaction and snapshot expiry
Spark’s rewrite_data_files merges small files, expire_snapshots drops old versions (ending time travel to them) and remove_orphan_files deletes unreferenced files, by default those older than three days. Glue table optimizers and S3 Tables run equivalents for you, as do Tableflow and MSK streaming tables.
Production considerations
Retention vs recovery. A rebuilt table can only reread what the topic still holds.
Commit health. The sink’s
iceberg.control.commit.max-consecutive-failuresdefaults to 1, so one failed commit stops the coordinator. Alert on connector and task state and on the age of the newest snapshot.Maintenance. Alert when file or snapshot counts climb.
Common problems and troubleshooting
Connector is RUNNING but the table stays empty
Commits happen on an interval, so wait one full interval, five minutes by default, then list snapshots:
No snapshot usually means records matched no route or the table doesn’t exist: the routing example skips records whose route-field matches no route-regex, and dynamic routing skips records for missing tables. Cheapest first: check the route field’s values, create the missing tables, then enable iceberg.tables.auto-create-enabled. On Confluent Cloud, confirm the control topic exists.
Thousands of small files and a long snapshot list
Count files and sizes from the .files Iceberg metadata table:
Cheapest first: lengthen the commit interval, run rewrite_data_files, then expire_snapshots and remove_orphan_files. To prevent it, schedule all three, or enable Glue table optimizers or S3 Tables maintenance from the first commit.
Athena or Snowflake can’t see the tables
On S3 Tables, uppercase letters in a table or column name make Athena fail with GENERIC_INTERNAL_ERROR: Get table request failed: com.amazonaws.services.glue.model.ValidationException: Unsupported Federation Resource - Invalid table or column names. Snowflake resolves unquoted names as uppercase, so lowercase tables need quotes there. Recreate the tables with the casing the reading engine needs; existing identifiers aren’t renamed in place.
Using Estuary for Kafka to Iceberg
Estuary pairs the Apache Kafka capture with the Apache Iceberg materialization, or with the Amazon S3 Iceberg materialization when appending is enough.
Capture. It reads JSON, Avro and Protobuf messages (Avro and JSON schema references aren’t supported). One topic is one collection and one message is one document, with metadata under
_meta. The capture reads continuously from the earliest offset the brokers still hold, and keeps offsets in its own checkpoint, so consumer-group lag tools won’t show it.Keys decide the table. Without a schema registry, or a usable
<topic>-keyschema, the collection key is partition and offset. The merge connector then writes one row per message, and a tombstone has its own key, so it deletes nothing. With a message key, rows update in place, and a null-value message removes the row only when Hard Delete is on.Apache Iceberg connector. It stages files in S3 and runs Spark merge jobs on your EMR Serverless application, keyed on the collection key. Commits follow Sync Frequency, 30 minutes by default.
Amazon S3 Iceberg connector. It only appends and needs no EMR: batches become Parquet files appended at the Upload Interval, five minutes by default. A document can occasionally be appended twice, so queries should tolerate duplicates.
Maintenance. Neither connector compacts or expires snapshots; for Glue catalogs the Apache Iceberg connector can register Glue table optimizers.
Types. New Apache Iceberg materializations store nested objects, arrays and multi-type fields as
variantcolumns, which need Spark 4 on the EMR application (emr-spark-8.0.0or later) and a format v3 reader. Avro decimals arrive as strings that the connector maps todouble. To keep exact values, setcastToStringon the field so the column is a string, and cast it in a view; there is noDDLoverride, and a JSON number is already a float on arrival.Case and shards. Field Name Case and Table Identifier Case apply only to tables created afterwards. Both materializations refuse to start split across several shards, though the capture can be sharded.
Implementing Kafka to Iceberg with Estuary
These steps adapt Estuary’s general data flow guide to this route. Estuary’s video tutorial sets up the append-only Amazon S3 Iceberg connector with AWS Glue; the steps below use the Apache Iceberg connector, which merges.
Complete the prerequisites in Kafka requirements and Iceberg requirements. Estuary also needs its IP addresses allowed to reach your brokers, and an EMR Serverless application (Spark,
emr-spark-8.1.0,x86_64) with a staging bucket in its region, an execution role that trusts EMR Serverless, and an IAM user or role that submits jobs.Create the Kafka capture. On the Sources page, click New Capture, choose Apache Kafka, name the capture, and fill in the endpoint properties:
Bootstrap Servers: comma-separated
host:portbrokers, reachable directly (the form has no tunnel setting). TLS Settings offers system certificates only.Credentials: SASL (User & Password) with SASL Mechanism (
PLAINby default, which Confluent Cloud uses; orSCRAM-SHA-256,SCRAM-SHA-512), Username and Password; or AWS MSK IAM with AWS Access Key ID, AWS Secret Access Key and AWS Region, which needs TLS and static keys.Schema Registry: Confluent Schema Registry with Schema Registry Endpoint, Schema Registry Username and Schema Registry Password, or No Schema Registry with Capture Messages in JSON Format Only. Avro and Protobuf need the registry.

Select topics. Click Next. Each topic is a binding under Output Collections, with a Topic; remove the ones you don’t want. Check each collection’s key: it comes from a registered
<topic>-keyschema, and is otherwise partition and offset. Click Save and publish; the capture starts at the earliest retained offset.Create the Iceberg materialization. On the capture’s details page, click Materialize, choose Apache Iceberg, and fill in the endpoint properties:
URL: the HTTPS endpoint
glue.<region>.amazonaws.com/icebergfor Glue,s3tables.<region>.amazonaws.com/icebergfor S3 Tables, or your REST catalog’s URL.Warehouse: the AWS account ID without hyphens for Glue, the table bucket ARN for S3 Tables, or the catalog name.
Namespace (no dots) and Base Location, such as
s3://<bucket>/<prefix>/, which Glue requires.Catalog Authentication: AWS SigV4 Authentication or AWS IAM Authentication for Glue and S3 Tables; OAuth 2.0 Client Credentials for other REST catalogs.
Hard Delete: on only if tombstones should delete rows.
To append instead, choose Amazon S3 Iceberg (delta updates) and set Upload Interval.

Connect the EMR application. Under Compute, choose AWS EMR Serverless and fill in Region, Application ID, Execution Role ARN, Bucket and optionally Bucket Path. For Authentication, choose AWS AccessKey, or Use Catalog Authentication with SigV4 or IAM catalog credentials. OAuth catalogs also need a System Manager Prefix.

Set the sync schedule and maintenance. Under Sync Schedule, Sync Frequency defaults to 30 minutes, with choices from
0sto4h. Each sync runs Spark merges and commits a snapshot per changed table, so shorter intervals cost more EMR time and make more small files. A fast-sync window (Timezone, Fast Sync Start Time, Fast Sync Stop Time) limits frequent syncs to set hours, with 4-hour syncs outside it.Glue Table Optimizers (Glue only): Execution Role ARN, Enable Compaction, Enable Snapshot Retention, Enable Orphan File Deletion.
Advanced Options, before any table exists: Field Name Case
lowercasefor Athena on S3 Tables, oruppercasefor unquoted Snowflake queries; the same for Table Identifier Case.

Map collections to tables and publish. Click Next and choose a naming convention. Each binding under Source Collections has a Table, an Alternative Namespace and Additional Table Properties, which apply only at creation. To keep a decimal exact, set
castToStringon its field in the binding’s field selection. Click Save and publish; the backfill loads without waiting for the schedule.Verify that data is landing.
On the capture details page, the Shard Information card reads PRIMARY; open a collection from the Collections list for its Data Preview.
The materialization details page charts Data Read; after one sync, run the checks from Setting up Kafka to Iceberg replication.

How Estuary handles key choices, rebuilds and extra destinations
Merge or append
Pick the connector by what the table must hold.
Situation | Connector | What lands |
|---|---|---|
Message keys and tombstones; readers want current rows | Apache Iceberg | One row per collection key, merged each sync |
Event topics with no key, or a change audit trail | Amazon S3 Iceberg | Every document appended, no EMR |
Rebuilding a table without rereading Kafka
A materialization backfill empties the destination tables and repopulates them from the data stored in your Estuary collections, so a rebuild doesn’t depend on topic retention. With Estuary’s trial buckets, collection data expires after about 20 days, so configure your own bucket for longer history. On the Apache Iceberg connector a backfill drops and recreates the table. With S3 Tables the connector requests a purge of the dropped table’s files; other catalogs keep them until you run remove_orphan_files with older_than set to the backfill time.
A second destination from the same read
A Kafka capture writes a collection, so another materialization, an Iceberg connector or a different destination, can read it without a second consumer on the brokers.
When another approach may make more sense
Confluent Cloud, and you want no maintenance. Tableflow compacts and expires snapshots itself and publishes Iceberg or Delta Lake tables; you give up other Kafka distributions and schemaless topics.
Amazon MSK on AWS. Firehose or MSK streaming tables keep the pipeline inside AWS; Firehose gives up non-IAM clusters, and streaming tables give up schema evolution and non-JSON input.
A broker that writes Iceberg. Redpanda’s Iceberg topics write Parquet alongside tiered storage and need no connector, but run only on BYOC and BYOVPC clusters, and skip topic data written before you enable them.
Transform before the write. Apache Flink or Spark jobs suit joins and enrichment; you run the job, its commits and its maintenance.
You already run Kafka Connect. The sink adds one connector to an estate you operate; the cost is workers and the control topic.
Related resources
Estuary: Apache Kafka capture, Apache Iceberg materialization, Amazon S3 Iceberg materialization, materialization sync schedule, backfilling data, the Kafka to Iceberg integration and Iceberg destination pages
Apache Iceberg: Kafka Connect, maintenance, Spark procedures, Spark Structured Streaming
Kafka and vendors: Kafka Connect user guide, Confluent Tableflow, Amazon Data Firehose with MSK, MSK streaming tables, S3 Tables maintenance, Redpanda Iceberg topics
To try the route, create a Kafka capture in the Estuary dashboard. Pricing: estuary.dev/pricing.

















