Economy research · Standard sources
Apache Hudi
Completed June 21, 2026
Economy analysis completed using DeepSeek-V4-Flash. Evaluating active structural profiles regarding Apache Hudi.
Core Synthesized Findings
Technical Assessment: Apache Hudi
1. Core Identity & Origin
Apache Hudi (Hadoop Upserts Deletes and Incrementals) is an open-source data lakehouse storage framework originating at Uber (circa 2016) to solve CDC ingestion into a 100+ PB data lake. It was the earliest of the three major open table formats to bring record-level upserts/deletes/incremental reads to immutable object storage (S3, GCS, Azure Blob). As of 2024, the project is governed by the Apache Software Foundation with Onehouse (founded by Hudi's creator) as the primary commercial backer.
Current stable line: Hudi 1.0.x (released 2024) — a landmark format with breaking structural changes, LSM-based timeline, non-blocking concurrency control, and multi-modal indexing. Backward-compatible writes are supported for 0.x tables.
---
2. Core Architecture
Timeline — The Single Source of Truth
At Hudi's architectural heart is a log-structured timeline stored under .hoodie/ in the table's basepath. Every action (commit, compaction, clean, rollback, clustering) is recorded as an instant with a type, timestamp, and lifecycle state (REQUESTED → INFLIGHT → COMPLETED). The timeline guarantees atomicity and consistency.
Hudi 1.0 upgrade: Introduced an LSM (Log-Structured Merge) Timeline to efficiently scale metadata for long-lived, high-volume tables — solving fragmentation issues in the older flat-file approach.
File Organization
| Concept | Definition |
|---|---|
| Basepath | Root storage location (S3/HDFS/GCS) containing .hoodie/ metadata dir |
| Partitions | Sub-paths under basepath (Hive-style partitioning) |
| File Group | Logical grouping of files for a given partition + record key hash range |
| File Slice | A single version of a file group: one base file + zero or more log files |
Record identity: Each record is identified by a unique key (composite of record key + partition path) and mapped deterministically to exactly one file group.
---
3. Table Types
Copy-On-Write (CoW)
- Write path: Every upsert/delete triggers a full rewrite of the base file (Parquet). No log files.
- Read path: Fastest possible reads — just scan base files. No merge cost.
- Trade-off: High write amplification. Ideal for read-heavy workloads with infrequent updates.
- Query types: Snapshot queries, Incremental queries.
Merge-On-Read (MoR)
- Write path: Updates/deletes are appended as row-based log files (Avro). Base files remain untouched.
- Read path: Snapshot queries must merge base + log at read time (compaction needed eventually). Read-optimized queries skip logs (older data only).
- Trade-off: Lower write latency (no file rewrite), higher read latency. Ideal for write-heavy, streaming workloads.
- Compaction: Asynchronous or inline service that merges log files into new base files.
Key distinction: CoW is optimized for OLAP-style read performance; MoR is optimized for streaming ingestion (Kafka CDC → S3 with low latency).
---
4. Indexing Architecture — A Major Differentiator
Hudi's index is arguably its strongest architectural differentiator vs. Iceberg/Delta. It determines which file group a record belongs to — essential for fast upserts/deletes without full-table scans.
| Index Type | Scope | Mechanism | Best For |
|---|---|---|---|
| Bloom Filter | Global or non-global | Bloom filter per base file to test key membership | Medium-scale tables, point lookups |
| Simple | Global | Maps partition-path + key to file group | Small tables |
| HBase | Global | External HBase server stores key→file mapping | Massive tables where local index is infeasible |
| Bucket | Non-global | Hash-based mapping (buckets) with consistent hashing | Well-distributed keys, large-scale random writes |
| Record Level Index (RLI) | Global (via MDT) | Leverages Hudi's metadata table; fine-grained key→file mapping. Available since 0.14.0 | General-purpose, best for large datasets |
| Multi-Modal Index (MMI) | Metadata table | Combines file index, column stats index, bloom index, record index in a single MoR metadata table | Data skipping, predicate pushdown, fast queries |
Takeaway: Hudi provides the widest range of indexing strategies among the three big table formats. This flexibility is critical for CDC workloads where you need to locate a specific record across millions of files.
---
5. Concurrency Control
| Mode | Mechanism | Use Case |
|---|---|---|
| Single Writer (in-process lock) | No external lock needed; single process handles writes + table services | Simple batch pipelines |
| Multi-Writer (optimistic) | Concurrent writers coordinate via timeline; conflict detection on commit | Multiple streaming jobs writing to same table |
| Non-Blocking Concurrency Control (NBCC) | New in Hudi 1.0. Allows multiple Flink/Spark streams to write concurrently without blocking each other on conflicts | High-throughput streaming — multiple Kafka topics → same Hudi table |
| Storage-Based Lock | Uses .hoodie/ directory as lock primitive | No external lock infrastructure needed |
| ZooKeeper / Hive Metastore Lock | External distributed lock | Production multi-tenant deployments |
Delta Lake uses a transaction log (JSON in _delta_log/). Iceberg uses catalog-level optimistic concurrency with atomic commits. Hudi is unique in supporting both optimistic concurrency AND NBCC for streaming.
---
6. Deployment Patterns
A. Spark-Based (Batch & Streaming)
- HoodieStreamer (renamed from DeltaStreamer in 1.0): Kafka/RDBMS CDC → Hudi. Supports single-run batch or continuous mode.
- Spark Datasource: Direct DataFrame-based read/write via
df.write.format("hudi"). - Spark SQL: DML support (INSERT, UPDATE, MERGE, DELETE on Hudi tables).
- Infra: Standard Spark clusters (EMR, Dataproc, Databricks, self-managed). Requires Hudi Spark bundle JAR matching Spark version (3.x or 4.x).
B. Flink-Based (Streaming-First)
- Flink Hudi Connector: Decoupled from Spark since 0.10+. Supports streaming writes with Flink's checkpointing.
- Best for: Real-time CDC ingestion with exactly-once semantics, NBCC multi-stream.
C. Query / Read Layer (Engine-agnostic)
- Presto / Trino: Native Hudi connector (Presto 0.275+). Supports CoW and MoR snapshot reads with Metadata Table (MDT). Data skipping via column stats index.
- Apache Hive: Hive connector for Hudi tables.
- AWS Athena: Supports Hudi tables (via Presto/Hive integrations).
- PyHudi / Hudi-rs (2024): Native Rust implementation with Python bindings — expanding beyond JVM.
D. Table Services (Runs inline or async)
- Compaction (MoR only): Merges log files → base files. Configurable inline or async via separate Spark/Flink job.
- Clustering: Reorganizes file groups for better file sizes and data locality.
- Cleaning: Removes old file versions beyond retention policy.
- Archiving: Moves older timeline entries to archive for metadata management.
---
7. Ecosystem & File Formats
| Aspect | Details |
|---|---|
| Base file format | Apache Parquet (columnar) |
| Log file format | Apache Avro (row-based, append-friendly) |
| Metadata table | Internal MoR table under .hoodie/metadata/ — self-managing |
| Catalog integration | Hive Metastore, AWS Glue Catalog, custom catalog plugins |
| REST Catalog | No native REST Catalog spec (vs. Iceberg which has one) |
| Streaming sources | Kafka, Pulsar, Kinesis (via HoodieStreamer) |
| File system support | HDFS, S3, GCS, Azure Blob/ADLS, local FS |
---
8. Comparative Trade-offs (vs. Iceberg & Delta Lake)
| Dimension | Apache Hudi | Apache Iceberg | Delta Lake |
|---|---|---|---|
| Primary backer | Onehouse / Uber | Community (Netflix, Apple, Dremio) | Databricks |
| Upsert speed | ★★★ Best (rich indexing, NBCC) | ★★ (requires merge-on-read pattern) | ★★ (requires MERGE INTO) |
| Read query speed | ★★ (MoR has merge cost) | ★★★ (clean metadata + manifest lists) | ★★★ (optimized with Z-Order) |
| Streaming ingestion | ★★★ Best (NBCC, Flink native) | ★★ (Flink support improving) | ★ (Spark-centric) |
| Index flexibility | ★★★ (6+ index types) | ★ (partition pruning only) | ★ (liquid clustering, Z-order) |
| Incremental queries | ★★★ (native timeline) | ★★ (incremental via snapshots) | ★★ (change data feed) |
| Ecosystem breadth | ★★ (Spark/Presto/Trino/Flink/Hive) | ★★★ (most engines + REST catalog) | ★★ (Spark-optimized, expanding) |
| Schema evolution | ★★ (supported) | ★★★ (best-in-class evolution) | ★★★ (strong evolution support) |
| REST catalog | Not supported | Canonical REST spec | Not supported |
| Maturity for CDC | ★★★ Born for this | ★ | ★★ |
Key architectural differentiators for Hudi:
- Index-first design — No other format has the breadth of indexing options; this is critical for upsert-heavy workloads at scale.
- Timeline as a log — Deeper metadata introspection (time travel, incremental consumption, auditing).
- NBCC — Hudi is uniquely architected for multi-stream conflict-free writes.
Weaknesses:
- Steeper learning curve — More configuration surface area (index type, table type, compaction strategy, clustering).
- MoR read performance — Snapshot queries on MoR tables can be slower than Iceberg manifest-based reads if compaction is not properly tuned.
- Smaller query engine ecosystem — Fewer native connectors than Iceberg. No REST catalog standard.
- Databricks ecosystem gap — Delta Lake is deeply embedded in Databricks; Hudi has no equivalent walled-garden advantage.
---
9. When to Choose Apache Hudi
Strong fits:
- CDC ingestion at scale (RDBMS → Data Lake) — Hudi's original use case and still its superpower
- Streaming-first lakehouse — Multiple Kafka topics writing concurrently with NBCC + Flink
- Update-heavy workloads — Point updates/deletes on petabytes (e.g., GDPR compliance record deletion)
- Incremental processing — Downstream consumers that need only the changed records since last poll
- Multi-engine environments — Need Spark for writes + Trino/Presto for ad-hoc queries + Hive for legacy BI
Avoid if:
- Predominantly append-only workloads (Iceberg or Delta are simpler)
- Need broadest engine compatibility (Iceberg leads here due to REST catalog)
- Simpler operational surface is preferred (Delta Lake has less config surface)
- Running on Databricks exclusively (Delta Lake is the native format)
---
10. Version Landscape (as of 2025)
| Version | Key Highlights |
|---|---|
| 0.x (pre-2024) | Original format. Table v6. Flat timeline. Bloom/Simple/HBase indexes |
| 1.0.0 (2024) | Major format rev. LSM Timeline, NBCC, Multi-Modal Index, Record Level Index, Table v8. Auto-upgrade from 0.x |
| 1.0.1+ | Bugfixes, Presto connector upgrade for 1.0 MDT support |
| Hudi-rs (2024) | Native Rust implementation with Python API — enables non-JVM readers/writers |
Recommendation: Use 1.0.x for new tables. Hudi 1.0 is the format of record going forward with significant architectural improvements in scalability and concurrency.
System Topology Notes
Research run executed across live index parameters. Review tool-calling logs for exact resource URI citations.