Apache Hudi
- Problem solved: update and delete rows in data lake tables (HDFS, S3) within minutes, and read only what changed, instead of reloading whole tables every day.
- Era: idea proposed in late 2015, built at Uber in 2016 under the codename "Hoodie", open source in 2017, Apache Incubator on January 17, 2019, top-level project voted on May 20, 2020 and announced on June 4, 2020.
- Created by: Vinoth Chandar and Prasanna Rajaperumal, at Uber.
- Category: table format and transactional storage engine (lakehouse).
Historical context
In 2016, Uber's data lake runs on HDFS, Parquet, Spark, Hive and Presto. By early 2017 it holds over 100 petabytes, with 100,000 vcores, 100,000 Presto queries, 10,000 Spark jobs and 20,000 Hive queries per day. But Uber's data keeps changing: a rider or driver rating, a fare adjustment arrives hours or even days after the trip. Yet HDFS and Parquet cannot modify a row. Ingestion therefore relies on full snapshots: for a table receiving a little over 100 GB of new data per day, each run converts over 100 TB again. As a result, new data only becomes visible once every 24 hours.
The alternative of the time, the Lambda architecture, doubles compute (a batch layer and a streaming layer). Uber's team starts from an observation: for workloads that can tolerate about ten minutes of latency, a fast way to ingest and prepare data in HDFS would be enough, with no separate "speed" layer. Vinoth Chandar recalls proposing the idea in late 2015, "slightly controversial" at the time. Hudi is built in 2016 under the codename "Hoodie" (Hadoop Upserts Deletes and Incrementals), first in copy-on-write mode, then in merge-on-read.
Uber opens the code in 2017 and presents it on its blog on March 11, 2017, in a post signed by Prasanna Rajaperumal and Vinoth Chandar. By moving from snapshot-based ingestion to incremental ingestion, Uber brings the latency of its raw data down from 24 hours to under one hour, with ingestion jobs every 10 to 15 minutes. In January 2019, Uber submits the project to the Apache Incubator; it then manages over 4,000 tables and several petabytes at Uber.
Hudi graduates from the incubator on the same day as Iceberg, by board vote on May 20, 2020, and the ASF announces it on June 4, 2020: it is then used by Alibaba, Tencent and Uber, and supported in Amazon EMR since release 5.28. Vinoth Chandar, who according to TechCrunch worked briefly at Confluent after Uber, remains chair of the project and founds Onehouse, a managed lakehouse service built around Hudi, which emerges from stealth on February 2, 2022 with an $8M seed round. Hudi 1.0, announced on December 16, 2024, rewrites the timeline and adds secondary indexes.
Key idea
Turn the data lake into a mutable and incremental store. Each record has a key; an index quickly finds the file that holds it, which allows an upsert (insert or update) without rewriting the whole partition. Each write is recorded as a timestamped action on a timeline, which gives atomic commits and lets a downstream job ask for "everything that changed since instant X" instead of rereading the whole table. The choice of table type trades write speed against read speed.
How it works
- Layout: within each partition, files are organized into file groups, identified by an ID. Each file group contains file slices: a base file (Parquet, ORC or HFile) written by a commit, plus log files.
- Index: maps a record key to its file group. The historical default is a Bloom filter stored in the footer of each Parquet file; other implementations (including HBase) are pluggable.
- Timeline: the log of all actions on the table, stored under
.hoodie/. Each action (COMMIT,DELTA_COMMIT,CLEAN,COMPACTION,CLUSTERING,ROLLBACK,SAVEPOINT...) goes through the statesREQUESTED,INFLIGHTthenCOMPLETED. Since 1.0, the history is stored as an LSM tree and instants follow semantics inspired by Spanner's TrueTime. - Copy-on-write (CoW): an update rewrites the affected Parquet base file. Fast reads (no merging), more expensive writes.
- Merge-on-read (MoR): updates are appended to log files (row format such as Avro, or columnar format), merged at read time, then periodically compacted with the base file. Fast writes, more expensive reads until compaction has run.
- Query types: snapshot (latest state), read optimized (MoR, base files only, faster but less fresh), time travel, and incremental queries (latest state since an instant, or a CDC stream with before and after images).
- Table services: cleaning, compaction, clustering; Hudi also sizes files at write time to avoid small files.
| Trade-off | Copy-on-write | Merge-on-read |
|---|---|---|
| Write latency | Higher | Lower |
| Query latency | Lower | Higher |
| Update cost | Rewrites entire base files | Append to the log |
Example of an incremental read with Spark (options from the documentation):
hoodie.datasource.query.type=incremental
hoodie.datasource.read.begin.instanttime=20170901080000
This read only returns records written after September 1, 2017 at 8 AM.
By the numbers
| Figure | Context | Source |
|---|---|---|
| 100+ PB | Data in Uber's HDFS in early 2017 | Uber blog (2018) |
| 100 GB vs 100 TB | Daily new data for one table vs volume reconverted at each snapshot ingestion (before Hudi) | Uber blog (2018) |
| 24 h to under 1 h | Raw data latency at Uber, before and after Hudi | Uber blog (2018) |
| 4,000+ tables | Tables managed by Hudi at Uber, for several petabytes (April 2019) | Uber blog (2019) |
| 14 committers | Project headcount two months after graduation (July 2020) | ASF board |
| ~1 million | Monthly downloads, up 7x in under two years (February 2022) | Onehouse blog |
| 60+ contributors | Who contributed to Hudi 1.0 (December 2024) | Hudi blog |
| 95% | Latency decrease on 10 TB TPC-DS for low-selectivity queries, thanks to secondary indexes (Hudi 1.0) | Vinoth Chandar's post |
Milestones
- Late 2015: Vinoth Chandar proposes the idea at Uber.
- 2016: built at Uber under the codename "Hoodie".
- 2017: open source; introduction post on the Uber blog on March 11, 2017.
- January 17, 2019: enters the Apache Incubator.
- October 24, 2019: release 0.5.0, the only release listed on the incubator page.
- May 20, 2020: graduation voted by the ASF board (public announcement on June 4, 2020).
- February 2, 2022: Onehouse, founded by Vinoth Chandar, emerges from stealth.
- December 16, 2024: Hudi 1.0 announced (LSM timeline, secondary indexes, non-blocking concurrency control).
Did you know?
- "Hudi" is pronounced "hoodie": it was the project's codename at Uber, and the first version of Uber's 2017 post actually called it Hoodie.
- The acronym varies across sources: "Hadoop Upsert Delete and Incremental" (2017), "Hadoop Upserts anD Incremental" (2018), "Hadoop Upserts Deletes and Incrementals" (ASF, 2020).
- At Uber in 2018, "Hudi 1.0" internally meant copy-on-write and "Hudi 2.0" meant merge-on-read: unrelated to the Apache Hudi 1.0 release of 2024.
- The documentation claims that the names "copy-on-write" and "merge-on-read" introduced by Hudi are now used industry-wide.
Strengths and limitations
| Strengths | Limitations |
|---|---|
| Fast upserts and deletes thanks to the key index | The bulk_insert operation does not size files during ingestion |
| Native incremental reads and CDC streams | In merge-on-read, read optimized queries skip logs not yet compacted |
| Two table types to trade writes against reads | Automatic file sizing adds write latency |
| Built-in table services (cleaning, compaction, clustering) | Born as a Spark library: other engines came later |
What came next
- Iceberg (Netflix, 2017) and Delta Lake (Databricks, open source in 2019) address the same gap in Hive tables.
- UniForm, in Delta Lake, can generate Hudi metadata for a Delta table, read-only from the Hudi side.
- Hudi Streamer keeps a Hudi table in sync with a database by reading Debezium events published to Kafka.
- Flink writes to Hudi tables and can read their change stream from a given commit.
Sources
raw-data/apache/hudi/hudi.mdraw-data/chronologie/jalons-sources.md(Hudi section)- Uber, "Hudi: Uber Engineering's Incremental Processing Framework on Apache Hadoop" (2017-03-11): https://www.uber.com/us/en/blog/hoodie/
- Uber, "Uber's Big Data Platform: 100+ Petabytes with Minute Latency" (2018-10-17): https://www.uber.com/us/en/blog/uber-big-data-platform/
- Uber, submission to the ASF (2019-04-19): https://www.uber.com/us/en/blog/apache-hudi/
- Incubator status: https://incubator.apache.org/projects/hudi.html
- ASF announcement (2020-06-04): https://news.apache.org/foundation/entry/the-apache-software-foundation-announces64
- ASF board, 2020-07-15: https://www.apache.org/foundation/records/minutes/2020/board_minutes_2020_07_15.txt
- Documentation, table types: https://hudi.apache.org/docs/table_types
- Documentation, timeline: https://hudi.apache.org/docs/timeline
- Documentation, storage, SQL queries, file sizing, ingestion, Flink: https://hudi.apache.org/docs/storage_layouts, https://hudi.apache.org/docs/sql_queries, https://hudi.apache.org/docs/file_sizing, https://hudi.apache.org/docs/hoodie_streaming_ingestion, https://hudi.apache.org/docs/flink-quick-start-guide
- Hudi 1.0 announcement (2024-12-16): https://hudi.apache.org/blog/2024/12/16/announcing-hudi-1-0-0
- Onehouse, "Introducing Onehouse" (2022-02-02): https://www.onehouse.ai/blog/introducing-onehouse
- Vinoth Chandar's LinkedIn posts (2020-06-04 and 2024-12-17), read through search extracts: https://www.linkedin.com/posts/vinothchandar_apachehudi-dataengineering-bigdata-activity-6674330592630460416-AgxO
- [S] TechCrunch (2022-02-02): https://techcrunch.com/2022/02/02/with-8m-seed-onehouse-builds-open-source-data-lake-house-eyes-managed-service/
- Exact date of the first open source release in 2017.
- Recent adoption figures published by the project (downloads, contributors) after 2022.
- General availability date of 1.0 (post dated 2025-01-18 listed on the official blog, not read).
- Detailed comparison with Iceberg and Delta Lake, to be sourced.
- The 95% figure (secondary indexes) comes from an extract of the December 2024 LinkedIn post: to confirm on the full Hudi blog post.