- Home
- Use cases
- Cloudera Open Data Lakehouse
- Iceberg Compaction and Maintenance Programme
Iceberg Compaction and Maintenance Programme
Compaction, snapshot expiry and monitoring that bring file counts and query times back under control.
The challenge
What teams are up against
Typical situation: an insurer streams claims events into Iceberg tables every minute. After a few months, queries open thousands of small files, planning takes longer than the scan, and storage grows faster than the data.
Our approach
How we deliver it, step by step
- 01
Measure
List tables by file count, snapshot count and size, and record the query time on the top queries.
- 02
Compact
Compact the changing partitions, not the whole table, outside peak query hours.
- 03
Expire snapshots
Expire to an agreed retention, with a minimum number of snapshots kept for rollback.
- 04
Monitor
Alert on file count and snapshot count per table.
- 05
Hand over
A runbook the platform team can run and change.
Architecture
The components involved
From the top of the stack down
Hive and Impala both compact Iceberg tables and expire snapshots on Cloudera. A scheduled job runs compaction on the partitions that change, then expires snapshots to the agreed retention, and a monitoring view tracks file counts and snapshot counts per table.
Outcomes
What changes when it is in place
Fewer, larger data files on the busiest tables.
Storage that falls after snapshot expiry instead of growing without limit.
A schedule and alerts owned by a named team.
Why Duczer East
Senior practitioners, from scope to delivery
We run Iceberg on Cloudera, we know compaction temporarily adds files before expiry removes them, and we plan retention with the table owners first.
About Duczer EastFAQ
Questions we are asked about this
Why do Iceberg tables get slow?
Many small files and long snapshot history. Compaction and snapshot expiry fix both.
Does compaction lock the table?
Readers keep working, but compaction rewrites data and takes time, so schedule it for quiet hours.
How long should we keep snapshots?
As long as you need time travel and rollback. Agree it with the table owners.
Related use cases
More problems we solve this way
Use cases on the same platform or for the same industries. Browse all use cases.
Open Lakehouse on Premises for a Regulated Firm
One copy of data in Iceberg tables for several engines, governed by Ranger, without leaving the perimeter.
Read use caseAI Readiness Assessment: A Fixed-Scope Data Review in 2 to 4 Weeks
Find out whether your data is ready for AI before you build. Fixed scope, 2 to 4 weeks, and a plan sized against facts.
Read use caseApigee AI Gateway: Token Quotas and Model Armor Screening
Control what applications send to models: token limits, prompt and response screening, caching and routing on the Apigee you already have.
Read use caseApigee Hybrid for APIs That Stay Close to On-Premises Systems
Keep API traffic close to on-premises systems while Google hosts the management plane, and know the entitlement catches before you plan.
Read use caseApigee MCP: Publish Existing APIs as Tools for AI Agents
Agents reach your systems through the Apigee keys, quotas and logs you already run, not through a new side door.
Read use caseApache APISIX: Controls for AI Model Traffic
Each AI use case gets its own rate and token limits at the gateway.
Read use caseRelated insights
Further reading from our practitioners
Analysis and guides on the questions this use case raises. All insights.
Iceberg table maintenance on Cloudera: compaction, snapshot expiry and monitoring
A weekly routine that keeps query times and storage under control
Hive to Iceberg migration steps on Cloudera: pre-checks, methods, tests and rollback
In waves, with a query test and a way back
Cloudera Data Services 1.x vs 2.0: how to decide what to run
What the public documentation shows, and what to confirm before you commit
Let's Talk
Talk through this use case
Tell us about your systems and where you are today. A senior practitioner replies, and only your email is required.


