Design an Iceberg data lake on S3 with compatible catalogs and engines, batch or streaming ingestion, safe table maintenance, and explicit governance.
An Iceberg lake on object storage can give several query engines a consistent view of shared tables. Building one means choosing a catalog, defining how writes commit, and keeping file layout and metadata healthy. This article follows that design; Delta Lake, Hudi and ordinary file datasets remain valid choices for other requirements.
Choose the catalog alongside the engines and access model. A REST interface reduces integration work, but grants, authentication and supported table features still vary. Prove a compatible writer and at least two readers before committing the platform to a catalog.
This is the build piece. If you want the category-level distinctions first, read EDW vs data lake vs lakehouse. For the warehouse-side view of the same convergence, see data warehouse architecture in 2026. For how to organize the data once it lands, see the medallion architecture.
Object Storage Is the Foundation, Not a Detail
Iceberg table data and metadata files commonly live in object storage, while the catalog also maintains table registrations and service state. Compute can scale separately, although streaming processors and query engines retain checkpoints, caches and other operational state. Shared files can reduce copies; they do not eliminate every serving or recovery copy.
For a general-purpose S3 lake, size files from measured scan and rewrite costs. Iceberg's write.target-file-size-bytes defaults to 512 MiB, but it is a target rather than a guarantee. Writer parallelism, partitioning, compression and commit cadence affect actual sizes. Hidden partitioning records transforms in metadata so readers need not infer partition values from path names. Partition evolution changes new writes without automatically reorganizing old files; it does not prevent over-partitioning.
Amazon S3 Tables provides managed Iceberg storage and maintenance. Evaluate it if you want AWS to operate those tasks, but check reader/writer compatibility, maintenance settings, regional availability and pricing. A self-managed lake offers different controls and leaves maintenance with your team.
Iceberg Is the Table Layer
Iceberg tracks table snapshots through metadata, manifest lists, and manifests that reference data and delete files. Compatible engines use that metadata for consistent reads and commits. Schema and partition evolution change metadata without necessarily rewriting old data. See the format comparison and architecture guide for the details.
Format version matters when you design in 2026. Iceberg 1.10 (September 2025) finalized format v3: deletion vectors instead of positional delete files, row lineage, and a variant type for semi-structured columns. Engine support is uneven. Databricks took v3 GA in May 2026, while Athena still only creates and operates on v2 tables as of this writing. If any engine in your stack cannot read v3, create tables as v2 and upgrade later, because a v2-only reader cannot safely process a v3 table.
Iceberg coordinates compatible concurrent operations through optimistic commits. Conflicting writes may retry or fail validation; they do not all succeed automatically. Readers see committed snapshots. This protects table consistency but cannot prevent an application from making an incompatible schema change. See Iceberg reliability.
A data-changing commit can create a new snapshot and add files; metadata-only changes do not necessarily create a data snapshot. Plan compaction, snapshot expiration, and safe orphan-file cleanup around workload growth and retention requirements. See Iceberg table maintenance.
The catalog layer and interoperability
A table catalog maps names to table metadata and coordinates commits. The REST catalog specification gives compatible clients a shared API. Moving catalogs still requires migrating registrations, authentication, grants and storage credentials, with a coordinated handover of write ownership.
Federation lets one catalog expose tables owned elsewhere. Its read/write support depends on the implementation and release; an unreleased feature page is not a production support guarantee. Apache Polaris became a top-level project in February 2026. AWS also documents Glue catalog federation. Check the deployed integration and preserve one authoritative commit path per table.
Catalog migration involves registrations, metadata locations, credentials, permissions, and engine configurations. Inventory those dependencies and coordinate write ownership so two catalogs do not independently commit changes to the same table. Table count alone cannot predict the migration duration.
| Catalog | Type | Governance / lock-in | Best fit |
|---|---|---|---|
| Hive Metastore | Legacy, self-hosted | Engine-specific integration and governance | Existing Hadoop estates being migrated off |
| AWS Glue Data Catalog | Managed (AWS) | REST endpoint + federation to Unity/Polaris/other REST catalogs | AWS-native lakes, S3 Tables |
| Apache Polaris | Open source (ASF) | Open REST catalog; verify federation in the deployed release | Multi-engine or multi-cloud, avoiding lock-in |
| Lakekeeper | Open source | REST catalog; authorization and engine integration need configuration | Self-hosted lakes wanting fine-grained governance |
| Databricks Unity Catalog | Managed (Databricks) | Iceberg REST read/write interop, GA since May 2026; richest inside Databricks | Databricks-centric platforms |
Polaris and Lakekeeper are implementations of the REST interface, not interchangeable governance systems. Lakekeeper's authorization documentation describes object-level grants and an OPA bridge for supported query-engine integration. Test enforcement in every engine; table access does not imply portable row or column filtering.
Ingestion freshness and commit behavior
Choose ingestion freshness from consumer requirements. Streaming can make committed data available within seconds in a suitable deployment, but capture lag, processing, checkpoints, and reader refresh determine the actual result.
The lighter option is the Apache Iceberg project's own Kafka Connect sink: a connector that reads Kafka topics, buffers records, and commits to Iceberg on a configurable interval, with automatic table creation, schema evolution from record schemas, multi-table fan-out, and Debezium and DMS transforms for CDC streams. It needs only a Kafka Connect cluster. The heavier and more capable option is Apache Flink, which commits Iceberg snapshots on checkpoint completion to get exactly-once delivery, and handles CDC changelogs by writing them as equality deletes on v2 tables with a primary key, so updates and deletes from an upstream database land correctly rather than as appends. The Flink Dynamic Iceberg Sink (November 2025; needs Iceberg 1.10+ and Flink 1.20, 2.0, or 2.1) extends this to route a single stream into many tables with schema evolution and a coordinated schema-evolution workflow, which removes the old one-job-per-table tax. We go deeper in Flink and Iceberg.
| Pattern | Latency | Exactly-once | CDC / upserts | Ops cost |
|---|---|---|---|---|
| Batch (Spark/Trino INSERT) | Minutes to hours | Via job idempotency | Manual MERGE | Low |
| Kafka Connect Iceberg sink | Seconds to minutes | Yes (commit coordinator over a control topic; relies on KIP-447, Kafka 2.5+) | CDC via Debezium/DMS transforms and id columns | Low (Connect cluster) |
| Flink streaming sink | Seconds | With compatible source, sink and checkpoint configuration | Native (equality deletes, v2 table with primary key) | Higher (Flink cluster) |
Small-file production depends on both commit cadence and writer parallelism. As an illustrative budget, 5,000 events per second at 1 KB each is 5 MB/s, or 18 GB per hour before compression. A single writer flushing one file every ten seconds would produce 360 files per hour; multiple writers or partitions can produce more. Compaction changes file layout, while snapshot expiration removes retained history. Choose retention to protect running jobs and time-travel requirements, rather than expiring everything older than one day by default. For ClickHouse readers, use the 26.8 LTS compatibility baseline and verify supported Iceberg types and deletes.
A Reference Architecture and What Breaks First
An AWS-native design can route events through Kafka and Flink into compatible Iceberg tables, then expose them through a supported catalog integration. Validate each writer and reader, including credentials, types, delete files, and format version. S3 Tables has service-specific integration requirements; it is not interchangeable with a general-purpose S3 bucket simply by changing the catalog endpoint.
Common failure modes to test:
- Small files. Monitor file counts, sizes and query planning time. Choose maintenance frequency from observed growth and service-level requirements, rather than prescribing hourly compaction for every stream.
- Format version mismatch. A writer defaults to v3, and Athena or an older Trino cannot read the table. Pin the format version per table until every reader is upgraded.
- Governance forks. Test catalog grants, query-engine row/column policies and direct storage access separately. Prevent broad storage credentials from bypassing catalog authorization.
- Catalog migration. Inventory registrations, grants and credentials, and coordinate a write-owner handover. A REST endpoint alone does not make that migration a configuration-only operation.
Designing or operating a lake on Iceberg and S3? Our data engineering consulting team builds and tunes open lakehouse architectures end to end, from streaming ingestion and catalog selection to the Iceberg maintenance that keeps them fast. Get in touch.