Compare Apache Hudi and Apache Iceberg table service operations (compaction, cleaning, clustering) and select the right tradeoffs

domain: hudi.apache.org · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Hudi compaction (MOR tables): the compaction service merges delta log files into columnar base files on a configurable schedule (inline or async); tune hoodie.compact.inline.max.delta.commits to control how often compaction triggers relative to ingestion commits.
  2. Iceberg compaction (rewrite_data_files): Iceberg has no built-in background service; compaction is an explicit user-triggered action via the rewrite_data_files procedure; it is better suited for batch-schedule maintenance jobs than continuous streaming ingestion.
  3. Hudi cleaning: the cleaner service deletes old file versions based on a retention policy (number of commits or time); configure hoodie.cleaner.policy and hoodie.cleaner.commits.retained to bound storage growth.
  4. Iceberg cleanup: use expire_snapshots and remove_orphan_files as separate steps; there is no unified cleaning service, giving more explicit control but requiring more operational orchestration.
  5. Hudi clustering: reorganizes data within partitions by a sort key for query performance, similar to Iceberg's sort-order compaction; set hoodie.clustering.inline or run async clustering via a Spark job.
  6. Choose Hudi for high-frequency upsert workloads where continuous background services reduce operational burden; choose Iceberg for batch-oriented workloads, polyglot engine support, or when tight control over maintenance timing is needed.

Known gotchas

Related routes

Run Hudi compaction and clustering to optimize a Merge-on-Read table for read performance
hudi.apache.org · 5 steps · unrated
Apache Iceberg table compaction and maintenance
iceberg.apache.org · 5 steps · unrated
Run Hudi compaction on a Merge-on-Read table to merge delta logs into base files and improve read performance
hudi.apache.org · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans