liveBook · Manning

Chapter 11: Operationalizing Apache Iceberg

What you will learn in chapter 11 of Architecting an Apache Iceberg Lakehouse

The chapter introduction explains why a live Iceberg lakehouse needs consistent, observable maintenance, governance, and recovery practices to remain reliable in production.

After this chapter you will be able to

What it builds on

Section by section

Introduction

The chapter introduction explains why a live Iceberg lakehouse needs consistent, observable maintenance, governance, and recovery practices to remain reliable in production.

Key terms: compaction, snapshot expiration, orphan file cleanup, automation, visibility, fine-grained versioning, structural metadata, governance framework, append-only model, snapshot lineage

11.1 Orchestrating the lakehouse

The section explains why production Iceberg maintenance needs automated orchestration, how conditional workflows can be structured, and why Iceberg permits a choice of execution engines.

Key terms: orchestration, maintenance workflows, compaction, snapshot expiration, maintenance pipelines, metadata-aware triggers, thresholds, per-table maintenance policies, directed acyclic graph, DAG

11.1.1 Choosing orchestration tools and patterns

This section explains how to turn Iceberg’s maintenance procedures into reliable, scalable operations by choosing orchestration tools and designing workflows around table needs.

Key terms: built-in procedures, execution layers, orchestration layer, Apache Airflow, DAG, dbt, run-operation macros, Argo Workflows, Prefect, metadata-aware DAGs

11.1.2 Metadata-driven triggers for proactive maintenance

This section shows how Iceberg metadata can guide proactive maintenance, while explaining when regular scheduled maintenance may be sufficient.

Key terms: metadata views, Iceberg SDK, files metadata table, snapshots metadata table, rewrite_position_delete_files, compaction, snapshot expiration, incremental, metadata-aware orchestration, regular cadence

11.1.3 Per-table maintenance policies

This section explains why Iceberg maintenance should vary by table and how to encode those differences in orchestration jobs and table properties.

Key terms: per-table maintenance policies, compaction, snapshot expiration, CDC, MOR mode, delete files, query access patterns, parameterization, Airflow DAG, write.target-file-size-bytes

11.1.4 Monitoring and alerting integration

This section explains how to combine Iceberg metadata, query-engine metrics, and orchestration logs into monitoring and alerts that reveal whether maintenance is working.

Key terms: observability, monitoring and alerting, maintenance workflows, metadata tables, files, snapshots, manifests, custom metrics, query-planning latency, engine-level metrics

11.1.5 Putting orchestration into practice

This section illustrates three ways to operationalize Iceberg maintenance: conditional compaction, post-transformation snapshot expiration, and metadata monitoring.

Key terms: Airflow, DAG, small files, compaction, threshold, Apache Spark, dbt, snapshot expiration, transformation model, run-operation

11.2 Auditing the lakehouse

Explains how Iceberg metadata supports lakehouse auditing, where access records add context, and why logical deletion must be distinguished from physical removal.

Key terms: snapshot history, audit trail, metadata tables, schema evolution, catalog systems, usage logging, logical deletion, physical deletion, active snapshots, orphan file cleanup

11.2.1 Using snapshot history for change tracking

This section explains how Iceberg snapshot history supports change tracking, investigation of data and schema changes, historical queries, and operational auditing.

Key terms: snapshot, parent snapshot, snapshots metadata table, lineage, summary map, snapshots table, manifest_list, manifests metadata table, schema evolution, audit trail

11.2.2 Using branching and tagging for governance

This section explains how Iceberg table-level references and Nessie catalog-level branching support governed changes, reproducibility, retention, and access separation.

Key terms: snapshot references, branches, tags, refs table, catalog-level branching, Project Nessie, catalog namespace, merge, snapshot expiration, retention policies

11.2.3 Implementing file and snapshot retention policies

Explains how to retain Iceberg table history and reclaim storage while matching cleanup policies to workload and governance needs.

Key terms: snapshot expiration, expire_snapshots, snapshots, tags, branches, remove_orphan_files, orphan files, storage listings, retention policies, retain_last

11.2.4 Practical retention policy orchestration

This section explains how to automate Iceberg retention safely by combining snapshot expiration, orphan-file cleanup, scheduling, and per-table policies.

Key terms: expire_snapshots, snapshots, tags, branches, remove_orphan_files, orphan files, metadata tree, snapshot expiration, orphan file cleanup, cadence

11.2.5 Secure data deletion

This section explains why an Iceberg delete does not immediately erase data and how compaction, snapshot expiration, and cleanup work together to achieve secure deletion.

Key terms: logical deletion, physical deletion, snapshots, time travel, Copy-on-Write (COW), Merge-on-Read (MOR), delete files, deletion vectors, compaction, snapshot expiration

11.2.6 Access auditing and governance

Explains how Iceberg lakehouses combine catalog and engine controls with lineage logging to govern and audit data access across multiple engines.

Key terms: immutable snapshot model, catalog, engine layers, access control, column-level access controls, role-based access control (RBAC), catalog-level branching, environment separation, end-to-end lineage, OpenLineage

11.2.7 Practical auditing with Iceberg: Example workflows

This section shows how Iceberg metadata, external lineage events, access logs, and catalogs can support practical auditing workflows.

Key terms: snapshot, snapshots and history metadata tables, OpenLineage, RunEvent, ETL process, timestamp alignment, snapshots, manifests, baselines, engine-level access logs

11.3 Disaster recovery in the lakehouse

Introduces disaster recovery for Iceberg lakehouses by distinguishing it from routine maintenance and explaining how component failures, metadata, and physical files affect recovery.

Key terms: disaster recovery, metadata catalog, snapshots, physical files, immutable manifests, branching, time travel, logical recovery

11.3.1 The role of the metadata catalog in disaster recovery

Explains why the metadata catalog is critical to Iceberg disaster recovery and how catalog design, backups, and metadata locations affect table restoration.

Key terms: metadata catalog, logical name, metadata location, metadata.json, AWS Glue, Apache Nessie, Apache Polaris, branches and tags, transactional guarantees, register_table

11.3.2 Protecting against data loss and corruption

This section explains layered protections that make Iceberg data and metadata recoverable when storage failures, deletions, or maintenance mistakes occur.

Key terms: object versioning, data and metadata, object storage, delete privileges, catalogs, cloud IAM roles, orphaned files, remove_orphan_files, age threshold, manifests

11.3.3 Cross-region and multi-environment recovery

Explains how to make Iceberg tables recoverable across regions and environments by coordinating storage and catalog replication, preserving isolation, and testing restoration.

Key terms: cross-region replication (CRR), absolute paths, metadata rewrite, catalog state, catalog replication, catalog entries, immutable metadata snapshots, register_table, read-only, split-brain

11.3.4 Rollback and time travel in incident response

Explains how Iceberg snapshots support incident investigation and recovery, and what limits and operational practices matter when using rollback.

Key terms: snapshot, snapshot ID, time travel, rollback_to_snapshot, metadata pointer, rollback, metadata-only operation, snapshot expiration, schema evolution, retention policies

11.3.5 Automating disaster recovery procedures

The section explains how to make Iceberg disaster recovery repeatable and reliable through recovery objectives, automated checkpoints and workflows, monitoring, drills, and governance.

Key terms: recovery point objective (RPO), recovery time objective (RTO), snapshot, restore point, metadata tags, catalog state, JSON, Avro, storage replication, metadata files

11.3.6 Validating recovery readiness

Recovery readiness in an Iceberg lakehouse must be demonstrated through realistic drills that test data and metadata, version compatibility, and the people and procedures needed to recover.

Key terms: recovery validation, scenario-based exercises, catalog loss, data loss, logical errors, metadata.json, manifests, data files, read-only scan jobs, full snapshot loadability

11.3.7 Disaster recovery through automation

This section explains how to make Iceberg disaster recovery a repeatable workflow through backups, replication, orchestration, monitoring, validation, and communication.

Key terms: metadata files, catalog state, object storage replication, recovery DAG, snapshot lineage, version controlled, event-driven recovery, orphan files, diagnostic pipeline, snapshot validation

11.3.8 Practical examples: Automating recovery workflows

The section illustrates four recovery workflows for restoring catalog access, rolling back bad writes, validating recovered files, and testing cross-region failover.

Key terms: catalog reregistration, metadata.json, object storage, Airflow DAG, snapshot rollback, cleanup, compaction, validation scan, snapshot, manifests

11.4 Summary

Concepts explained in this chapter

← Chapter 10: Maintaining an Iceberg lakehouse

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.