Apache Iceberg Architecture (Catalogs, Metadata Files, Manifest Lists, Manifest Files)
Trace Iceberg’s metadata tree from catalogs through manifests that enable snapshot isolation.
In plain words
Resolve table to current metadata. Next, manifest pruning from partition and column stats. Finally, new files and metadata with CAS/retry.
Think of it like…
The catalog is the current card in a library catalog, metadata JSON is the edition index, the manifest list is a table of contents, and manifests are the detailed shelf records for every file.
Where you’ve seen it
Catalog orders points to v18.metadata.json; its manifest list references manifests for new and inherited Parquet files. A reader pins snapshot 18 while a writer commits snapshot 19 without changing that reader's file set.
Words you’ll hear
- Catalog
- A service or REST/filesystem implementation that atomically maps a table name to its current metadata location.
- Manifests
- Snapshot records that enumerate manifest files and build a complete file-set view from one metadata version.
- Snapshots
- Small metadata files that list data/delete file paths, partition tuples, record counts, and bounds used for pruning.
- Operational boundary
- Two writers can commit from the same stale metadata if conflicts are not retried, a misconfigured catalog can split table ownership, and copying a metadata directory without rewriting catalog and absolute/relative locations breaks the table. Keep the catalog as the authority for the current metadata pointer, retry snapshot conflicts through table APIs, use atomic REST/catalog commits, and migrate/copy tables with supported registration or metadata-rewrite commands.
Visual diagram
Theory & deep dive
Catalog: the working mechanism
Iceberg identifies a table through a catalog, commits one metadata JSON per snapshot, and links a manifest list to manifest files that enumerate data/delete files, row counts, partition values, and statistics.
Resolve table to current metadata. Manifest pruning from partition and column stats, then fixed snapshot data/delete set; this exposes the state governed by Snapshots.
Catalog orders points to v18.metadata.json; its manifest list references manifests for new and inherited Parquet files. A reader pins snapshot 18 while a writer commits snapshot 19 without changing that reader's file set.
Apache Iceberg Architecture: failure mode and production response
Two writers can commit from the same stale metadata if conflicts are not retried, a misconfigured catalog can split table ownership, and copying a metadata directory without rewriting catalog and absolute/relative locations breaks the table.
Keep the catalog as the authority for the current metadata pointer, retry snapshot conflicts through table APIs, use atomic REST/catalog commits, and migrate/copy tables with supported registration or metadata-rewrite commands. Track Metadata depth as "catalog → metadata → manifest list → manifests → files", and make Manifest pruning visible to the dataset owner.
How it works, step by step
Step 1 of 41. Catalog lookup
Resolve table to current metadata. Iceberg identifies a table through a catalog, commits one metadata JSON per snapshot, and links a manifest list to manifest files that enumerate data/delete files, row counts, partition values, and statistics.
- Metadata depth
- catalog → metadata → manifest list → manifests → files
- Manifests
- Snapshot records that enumerate manifest files and build a complete file-set view from one metadata version.
When to use it & trade-offs
What it is
Iceberg identifies a table through a catalog, commits one metadata JSON per snapshot, and links a manifest list to manifest files that enumerate data/delete files, row counts, partition values, and statistics. Catalog orders points to v18.metadata.json; its manifest list references manifests for new and inherited Parquet files. A reader pins snapshot 18 while a writer commits snapshot 19 without changing that reader's file set.
Why it matters: Two writers can commit from the same stale metadata if conflicts are not retried, a misconfigured catalog can split table ownership, and copying a metadata directory without rewriting catalog and absolute/relative locations breaks the table. Keep the catalog as the authority for the current metadata pointer, retry snapshot conflicts through table APIs, use atomic REST/catalog commits, and migrate/copy tables with supported registration or metadata-rewrite commands.
When to reach for it
- Trace Iceberg’s metadata tree from catalogs through manifests that enable snapshot isolation.
- Choose Catalog because it provides this capability: A service or REST/filesystem implementation that atomically maps a table name to its current metadata location.
- Keep evidence for Metadata depth at "catalog → metadata → manifest list → manifests → files" so the last production stage-Commit writer - new files and metadata with CAS/retry-remains testable.
When to avoid or be careful
- Two writers can commit from the same stale metadata if conflicts are not retried, a misconfigured catalog can split table ownership, and copying a metadata directory without rewriting catalog and absolute/relative locations breaks the table.
- Do not conflate Manifests with Catalog. The second concept contributes different behavior: Snapshot records that enumerate manifest files and build a complete file-set view from one metadata version.
- Release only after this guardrail is in place: Keep the catalog as the authority for the current metadata pointer, retry snapshot conflicts through table APIs, use atomic REST/catalog commits, and migrate/copy tables with supported registration or metadata-rewrite commands.
Catalog / Manifests / Snapshots - roles, limits, and operating cost
Strengths: A service or REST/filesystem implementation that atomically maps a table name to its current metadata location. Iceberg identifies a table through a catalog, commits one metadata JSON per snapshot, and links a manifest list to manifest files that enumerate data/delete files, row counts, partition values, and statistics.
Watch out: Two writers can commit from the same stale metadata if conflicts are not retried, a misconfigured catalog can split table ownership, and copying a metadata directory without rewriting catalog and absolute/relative locations breaks the table.
Strengths: Snapshot records that enumerate manifest files and build a complete file-set view from one metadata version. In this workflow it supports: Read files - fixed snapshot data/delete set.
Watch out: The operating cost is real: skip files by partition and column bounds.
Strengths: Small metadata files that list data/delete file paths, partition tuples, record counts, and bounds used for pruning. Its output can be checked with Snapshot conflict.
Watch out: Operating guardrail: Keep the catalog as the authority for the current metadata pointer, retry snapshot conflicts through table APIs, use atomic REST/catalog commits, and migrate/copy tables with supported registration or metadata-rewrite commands.
Interview signals & numbers to know
When this topic comes up
- “Where is the failure boundary for Catalog, and how would Metadata depth reveal it?”
- “Why is Manifests distinct from this behavior: small metadata files that list data/delete file paths, partition tuples, record counts, and bounds used for pruning?”
- Production clue: Two writers can commit from the same stale metadata if conflicts are not retried, a misconfigured catalog can split table ownership, and copying a metadata directory without rewriting catalog and absolute/relative locations breaks the table.
- Design probe: Keep the catalog as the authority for the current metadata pointer, retry snapshot conflicts through table APIs, use atomic REST/catalog commits, and migrate/copy tables with supported registration or metadata-rewrite commands.
Benchmarks & rules of thumb
- Metadata depth
- catalog → metadata → manifest list → manifests → files
- Manifest pruning
- skip files by partition and column bounds
- Snapshot conflict
- retry based on base/current metadata comparison
Common mistakes & follow-ups
Common interview mistakes
- Two writers can commit from the same stale metadata if conflicts are not retried, a misconfigured catalog can split table ownership, and copying a metadata directory without rewriting catalog and absolute/relative locations breaks the table.
- Reporting success from a job exit code without checking Metadata depth and Manifest pruning.
- Treating this example as complete without replay, rollback, or access boundaries: Catalog
orderspoints tov18.metadata.json; its manifest list references manifests for new and inherited Parquet files. A reader pins snapshot 18 while a writer commits snapshot 19 without changing that reader's file set.
Likely interviewer follow-ups
- How would you prove this contract instead of only checking that the command ran: A service or REST/filesystem implementation that atomically maps a table name to its current metadata location.
- What does the recovery plan do when this occurs? Two writers can commit from the same stale metadata if conflicts are not retried, a misconfigured catalog can split table ownership, and copying a metadata directory without rewriting catalog and absolute/relative locations breaks the table.
- When is Catalog insufficient for Manifest pruning, and what does adding Manifests cost in Metadata depth?
Knowledge check
Put it into practice
Practice related interview Q&A
Apply Apache Iceberg Architecture (Catalogs, Metadata Files, Manifest Lists, Manifest Files) with data engineer interview Q&A and hands-on practice.