Kafka

Apache Iceberg

18 min read

Last updated: November 23, 2026

Kafka to Apache Iceberg: How to Stream Topics into Tables

Learn how to stream data from Apache Kafka into Apache Iceberg efficiently. This guide will introduce you to the foundations of a streaming data lakehouse and showcase the best options for data integrations.

Apache Kafka to Iceberg integration guide cover showing the Apache Kafka and Iceberg logos
Share this article
Apache Kafka to Iceberg integration guide cover showing the Apache Kafka and Iceberg logos
Summarize this page with AI

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

Managed pipeline

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-iceberg by default), and it commits every iceberg.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.

Kafka partitions feed a writer that stages Parquet files; each commit adds a snapshot to Iceberg.
Readers see nothing new until a commit lands, so the interval sets freshness.

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

SASL_PLAIN or SASL_OAUTHBEARER, over TLS 1.2

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:

  1. 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.

  2. Keys. Compacted topics delete a key with a null-value message, a tombstone. A writer that ignores keys appends it like any other row.

  3. Partitions, which cap consumer parallelism.

  4. 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-impl to org.apache.iceberg.aws.s3.S3FileIO.

  • Tables first. The sink’s iceberg.tables.auto-create-enabled and iceberg.tables.evolve-schema-enabled are 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.

  1. 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 older databricks/iceberg-kafka-connect repository says it is not maintained because the code moved to Apache Iceberg, so don’t use its releases.

./gradlew -x test -x integrationTest clean build
mkdir -p /usr/local/share/kafka/plugins
./gradlew -x test -x integrationTest clean build
mkdir -p /usr/local/share/kafka/plugins
./gradlew -x test -x integrationTest clean build
mkdir -p /usr/local/share/kafka/plugins
./gradlew -x test -x integrationTest clean build
mkdir -p /usr/local/share/kafka/plugins
./gradlew -x test -x integrationTest clean build
mkdir -p /usr/local/share/kafka/plugins
  1. Point the worker at the plugin directory. In the worker’s properties file, set plugin.path to a comma-separated list of directories, then restart the workers.

plugin.path=/usr/local/share/kafka/plugins
plugin.path=/usr/local/share/kafka/plugins
plugin.path=/usr/local/share/kafka/plugins
plugin.path=/usr/local/share/kafka/plugins
plugin.path=/usr/local/share/kafka/plugins
  1. Create the destination tables in Spark SQL, since auto-create is off:

CREATE TABLE default.events_list (
    id STRING,
    type STRING,
    ts TIMESTAMP,
    payload STRING)
PARTITIONED BY (hours(ts));

CREATE TABLE default.events_create (
    id STRING,
    type STRING,
    ts TIMESTAMP,
    payload STRING)
PARTITIONED BY (hours(ts));
CREATE TABLE default.events_list (
    id STRING,
    type STRING,
    ts TIMESTAMP,
    payload STRING)
PARTITIONED BY (hours(ts));

CREATE TABLE default.events_create (
    id STRING,
    type STRING,
    ts TIMESTAMP,
    payload STRING)
PARTITIONED BY (hours(ts));
CREATE TABLE default.events_list (
    id STRING,
    type STRING,
    ts TIMESTAMP,
    payload STRING)
PARTITIONED BY (hours(ts));

CREATE TABLE default.events_create (
    id STRING,
    type STRING,
    ts TIMESTAMP,
    payload STRING)
PARTITIONED BY (hours(ts));
CREATE TABLE default.events_list (
    id STRING,
    type STRING,
    ts TIMESTAMP,
    payload STRING)
PARTITIONED BY (hours(ts));

CREATE TABLE default.events_create (
    id STRING,
    type STRING,
    ts TIMESTAMP,
    payload STRING)
PARTITIONED BY (hours(ts));
CREATE TABLE default.events_list (
    id STRING,
    type STRING,
    ts TIMESTAMP,
    payload STRING)
PARTITIONED BY (hours(ts));

CREATE TABLE default.events_create (
    id STRING,
    type STRING,
    ts TIMESTAMP,
    payload STRING)
PARTITIONED BY (hours(ts));
  1. Configure the sink. Records with type list go to default.events_list, create to default.events_create, and others are skipped. Save this as events-sink.json with your catalog URI, credential and warehouse.

{
  "name": "events-sink",
  "config": {
    "connector.class": "org.apache.iceberg.connect.IcebergSinkConnector",
    "tasks.max": "2",
    "topics": "events",
    "iceberg.tables": "default.events_list,default.events_create",
    "iceberg.tables.route-field": "type",
    "iceberg.table.default.events_list.route-regex": "list",
    "iceberg.table.default.events_create.route-regex": "create",
    "iceberg.catalog": "demo",
    "iceberg.catalog.type": "rest",
    "iceberg.catalog.uri": "https://localhost",
    "iceberg.catalog.credential": "<credential>",
    "iceberg.catalog.warehouse": "<warehouse name>"
  }
}
{
  "name": "events-sink",
  "config": {
    "connector.class": "org.apache.iceberg.connect.IcebergSinkConnector",
    "tasks.max": "2",
    "topics": "events",
    "iceberg.tables": "default.events_list,default.events_create",
    "iceberg.tables.route-field": "type",
    "iceberg.table.default.events_list.route-regex": "list",
    "iceberg.table.default.events_create.route-regex": "create",
    "iceberg.catalog": "demo",
    "iceberg.catalog.type": "rest",
    "iceberg.catalog.uri": "https://localhost",
    "iceberg.catalog.credential": "<credential>",
    "iceberg.catalog.warehouse": "<warehouse name>"
  }
}
{
  "name": "events-sink",
  "config": {
    "connector.class": "org.apache.iceberg.connect.IcebergSinkConnector",
    "tasks.max": "2",
    "topics": "events",
    "iceberg.tables": "default.events_list,default.events_create",
    "iceberg.tables.route-field": "type",
    "iceberg.table.default.events_list.route-regex": "list",
    "iceberg.table.default.events_create.route-regex": "create",
    "iceberg.catalog": "demo",
    "iceberg.catalog.type": "rest",
    "iceberg.catalog.uri": "https://localhost",
    "iceberg.catalog.credential": "<credential>",
    "iceberg.catalog.warehouse": "<warehouse name>"
  }
}
{
  "name": "events-sink",
  "config": {
    "connector.class": "org.apache.iceberg.connect.IcebergSinkConnector",
    "tasks.max": "2",
    "topics": "events",
    "iceberg.tables": "default.events_list,default.events_create",
    "iceberg.tables.route-field": "type",
    "iceberg.table.default.events_list.route-regex": "list",
    "iceberg.table.default.events_create.route-regex": "create",
    "iceberg.catalog": "demo",
    "iceberg.catalog.type": "rest",
    "iceberg.catalog.uri": "https://localhost",
    "iceberg.catalog.credential": "<credential>",
    "iceberg.catalog.warehouse": "<warehouse name>"
  }
}
{
  "name": "events-sink",
  "config": {
    "connector.class": "org.apache.iceberg.connect.IcebergSinkConnector",
    "tasks.max": "2",
    "topics": "events",
    "iceberg.tables": "default.events_list,default.events_create",
    "iceberg.tables.route-field": "type",
    "iceberg.table.default.events_list.route-regex": "list",
    "iceberg.table.default.events_create.route-regex": "create",
    "iceberg.catalog": "demo",
    "iceberg.catalog.type": "rest",
    "iceberg.catalog.uri": "https://localhost",
    "iceberg.catalog.credential": "<credential>",
    "iceberg.catalog.warehouse": "<warehouse name>"
  }
}
  1. Launch the connector. The Connect REST API listens on port 8083 by default, and POST /connectors takes name and config, as above.

curl -X POST http://localhost:8083/connectors \
     -i -H "Content-Type: application/json" -d @events-sink.json

curl -s http://localhost:8083/connectors/events-sink/status | jq
curl -X POST http://localhost:8083/connectors \
     -i -H "Content-Type: application/json" -d @events-sink.json

curl -s http://localhost:8083/connectors/events-sink/status | jq
curl -X POST http://localhost:8083/connectors \
     -i -H "Content-Type: application/json" -d @events-sink.json

curl -s http://localhost:8083/connectors/events-sink/status | jq
curl -X POST http://localhost:8083/connectors \
     -i -H "Content-Type: application/json" -d @events-sink.json

curl -s http://localhost:8083/connectors/events-sink/status | jq
curl -X POST http://localhost:8083/connectors \
     -i -H "Content-Type: application/json" -d @events-sink.json

curl -s http://localhost:8083/connectors/events-sink/status | jq

A healthy connector reports RUNNING for the connector and every task:

{
  "name": "events-sink",
  "connector": {
    "state": "RUNNING",
    "worker_id": "connect:8083"
  },
  "tasks": [
    {
      "id": 0,
      "state": "RUNNING",
      "worker_id": "connect:8083"
    }
  ],
  "type": "sink"
}
{
  "name": "events-sink",
  "connector": {
    "state": "RUNNING",
    "worker_id": "connect:8083"
  },
  "tasks": [
    {
      "id": 0,
      "state": "RUNNING",
      "worker_id": "connect:8083"
    }
  ],
  "type": "sink"
}
{
  "name": "events-sink",
  "connector": {
    "state": "RUNNING",
    "worker_id": "connect:8083"
  },
  "tasks": [
    {
      "id": 0,
      "state": "RUNNING",
      "worker_id": "connect:8083"
    }
  ],
  "type": "sink"
}
{
  "name": "events-sink",
  "connector": {
    "state": "RUNNING",
    "worker_id": "connect:8083"
  },
  "tasks": [
    {
      "id": 0,
      "state": "RUNNING",
      "worker_id": "connect:8083"
    }
  ],
  "type": "sink"
}
{
  "name": "events-sink",
  "connector": {
    "state": "RUNNING",
    "worker_id": "connect:8083"
  },
  "tasks": [
    {
      "id": 0,
      "state": "RUNNING",
      "worker_id": "connect:8083"
    }
  ],
  "type": "sink"
}
  1. 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.

df = spark.table("demo.default.events_list")
df.show(5)

spark.sql("SELECT committed_at, operation FROM demo.default.events_list.snapshots").show()
df = spark.table("demo.default.events_list")
df.show(5)

spark.sql("SELECT committed_at, operation FROM demo.default.events_list.snapshots").show()
df = spark.table("demo.default.events_list")
df.show(5)

spark.sql("SELECT committed_at, operation FROM demo.default.events_list.snapshots").show()
df = spark.table("demo.default.events_list")
df.show(5)

spark.sql("SELECT committed_at, operation FROM demo.default.events_list.snapshots").show()
df = spark.table("demo.default.events_list")
df.show(5)

spark.sql("SELECT committed_at, operation FROM demo.default.events_list.snapshots").show()
  1. Check the failure paths. Produce a record with an unknown type and 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 DebeziumTransform and DmsTransform, 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-enabled is 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

struct, or variant

variant is semi-structured, needs format v3, and Spark reads it from 4.0

Timestamp

timestamp or timestamptz

Microseconds; format v3 adds nanosecond types, which Spark can’t read

Time of day, UUID

time, uuid

Spark can’t read time; it reads uuid as a string

Money

decimal(P, S)

Fixed-point and exact; a double column is an IEEE 754 approximation

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-failures defaults 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:

SELECT committed_at, operation FROM demo.default.events_list.snapshots;
SELECT committed_at, operation FROM demo.default.events_list.snapshots;
SELECT committed_at, operation FROM demo.default.events_list.snapshots;
SELECT committed_at, operation FROM demo.default.events_list.snapshots;
SELECT committed_at, operation FROM demo.default.events_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:

SELECT count(*) AS files, avg(file_size_in_bytes) AS avg_bytes
FROM demo.default.events_list.files;
SELECT count(*) AS files, avg(file_size_in_bytes) AS avg_bytes
FROM demo.default.events_list.files;
SELECT count(*) AS files, avg(file_size_in_bytes) AS avg_bytes
FROM demo.default.events_list.files;
SELECT count(*) AS files, avg(file_size_in_bytes) AS avg_bytes
FROM demo.default.events_list.files;
SELECT count(*) AS files, avg(file_size_in_bytes) AS avg_bytes
FROM demo.default.events_list.files;

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>-key schema, 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 variant columns, which need Spark 4 on the EMR application (emr-spark-8.0.0 or later) and a format v3 reader. Avro decimals arrive as strings that the connector maps to double. To keep exact values, set castToString on the field so the column is a string, and cast it in a view; there is no DDL override, 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.

  1. 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.

  2. 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:port brokers, reachable directly (the form has no tunnel setting). TLS Settings offers system certificates only.

    • Credentials: SASL (User & Password) with SASL Mechanism (PLAIN by default, which Confluent Cloud uses; or SCRAM-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.

Apache Kafka capture form with SASL credentials and a Confluent Schema Registry, secrets redacted.
  1. 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>-key schema, and is otherwise partition and offset. Click Save and publish; the capture starts at the earliest retained offset.

  2. 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/iceberg for Glue, s3tables.<region>.amazonaws.com/iceberg for 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.

Apache Iceberg endpoint form with a Glue URL, Warehouse, Namespace and Base Location filled in.
  1. 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.

Apache Iceberg Compute section with the AWS EMR Serverless fields and Authentication options.
  1. Set the sync schedule and maintenance. Under Sync Schedule, Sync Frequency defaults to 30 minutes, with choices from 0s to 4h. 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 lowercase for Athena on S3 Tables, or uppercase for unquoted Snowflake queries; the same for Table Identifier Case.

Apache Iceberg Sync Schedule section with the Sync Frequency dropdown open.
  1. 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 castToString on its field in the binding’s field selection. Click Save and publish; the backfill loads without waiting for the schedule.

  2. Verify that data is landing.

Apache Iceberg materialization Overview: Connector Status Running and a Data Read chart.

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

To try the route, create a Kafka capture in the Estuary dashboard. Pricing: estuary.dev/pricing.

FAQs

Ask which Kafka you run, whether tables need current rows or change history, who will run compaction, and how fresh readers need data. Confluent Cloud users get managed maintenance from Tableflow, which keeps between 10 and 100 snapshots per table and doesn't let you change that.

Spark, Flink and Trino read the same Iceberg tables concurrently, according to AWS's Firehose docs, and Athena and Snowflake read them too once catalog and permissions allow it. With Snowflake Open Catalog, Estuary's Iceberg docs recommend setting Table Identifier Case to uppercase so Snowflake can query tables without quoting names.

It can be, with Kafka 2.5 or later for exactly-once delivery. Two limits matter: the coordinator stops after one failed commit by default (iceberg.control.commit.max-consecutive-failures), and the plugin ships as two builds, with or without the Hive Metastore client, installed on every Connect node.

At each commit. Tableflow publishes about every five minutes, sooner for higher-throughput topics according to Confluent. Estuary's Amazon S3 Iceberg connector accepts upload intervals up to four hours, and Redpanda documents no commit interval.

A merge updates or deletes existing rows by key, so tables show current state; an append only adds rows, so tables show change history. Estuary's Apache Iceberg connector merges with copy-on-write by default; merge-on-read, opted into per table, needs EMR release emr-7.12.0 or emr-spark-8.0.0 or later.

START STREAMING YOUR DATA FOR FREE

START STREAMING YOUR DATA FOR FREE

About the author

Seán Whelan is a Solutions Engineer at Estuary, helping customers design, troubleshoot, and run production data pipelines. Seán works across change data capture, database replication, and SaaS integrations, and writes about what actually comes up when real teams move data.

Real-Time & Batch Pipelines.

Real-Time & Batch Pipelines.

Real-Time & Batch Pipelines.

Simple to Deploy.

Simple to Deploy.

Simple to Deploy.

Simply Priced.

Simply Priced.

Simply Priced.

$0.50/GB of data moved + $100/month per connector instance

$0.50/GB of data moved + $100/month per connector instance

$0.50/GB of data moved + $100/month per connector instance

Simple usage-based pricing with volume discounts

Simple usage-based pricing with volume discounts

Simple usage-based pricing with volume discounts

Sub-100ms end-to-end latency for real-time pipelines

Sub-100ms end-to-end latency for real-time pipelines

Sub-100ms end-to-end latency for real-time pipelines

Estuary logo - Real-time data integration platform

Log-based CDC, SaaS, and batch unified in an event-driven ETL architecture.

Don’t miss a thing

Subscribe now to get the latest news and updates.

© 2026 All Rights Reserved -

Estuary

Slack
GitHub
LinkedIn
X