Jump to content

Apache Uniffle

From Open Lakehouse Wiki
Apache Uniffle
Developer Apache Software Foundation (originally Tencent)
Latest release 0.10.0
(2025-09-25)
Written in Java (server and clients), Go (Kubernetes operator)
Type Remote shuffle service
License Apache License 2.0
Website uniffle.apache.org
Repository github.com/apache/uniffle
Related Apache Spark, Apache Celeborn, Shuffle
Last verified 23 November 2026 against the v0.10.0 tag of apache/uniffle (README.md, pom.xml, docs/server_guide.md, docs/operator/README.md, patch/spark), the Uniffle download page, the Uniffle incubation status page and proposal, and the v0.7.0 tag of apache/celeborn.

Apache Uniffle is an open source remote shuffle service for distributed computing engines: a cluster of coordinators and shuffle servers that receives the shuffle data of Apache Spark, Hadoop MapReduce and Apache Tez jobs, stores it in memory, on local disk or in remote storage such as HDFS, and serves it to the tasks that read it.[1] The project describes the change as moving shuffle from a "local file pull-like style" to a "remote block push-like style". Uniffle is a top-level project of the Apache Software Foundation.

History

Uniffle was started at Tencent in 2020 under the name "Firestorm" and open sourced on GitHub in 2021.[2] It entered the Apache Incubator on 2022-06-06, released 0.6.0 as its first incubating release in October 2022, and graduated to a top-level project on 2025-02-19.[3]

The latest release is 0.10.0, published on 2025-09-25.[4]

Architecture

A Uniffle cluster has three parts:[1]

  • A coordinator cluster, which collects the status of shuffle servers and assigns them to jobs.
  • A shuffle server cluster, which receives shuffle data, merges it and writes it to storage.
  • Optional remote storage, such as HDFS.

Shuffle servers can store data as memory plus local files, memory plus remote storage, or memory plus local files plus remote storage. The server setting rss.storage.type takes the values MEMORY_LOCALFILE, MEMORY_HDFS and MEMORY_LOCALFILE_HDFS, and the README recommends the last one for production.[1][5]

Stored shuffle data uses two files per partition: a data file that holds all the blocks for the partition, and an index file with metadata for each block.[1]

How does a shuffle work with Uniffle?

With Uniffle, the Spark driver asks a coordinator which shuffle servers to use. Each map task buffers its records, requests memory from a shuffle server, and sends the data; the server caches it in memory and flushes it to storage. After writing, the task reports all its block IDs to the shuffle server so that readers can check that they received every block, and it records its task attempt ID in the map status so that speculative execution works. Reduce tasks then read from shuffle servers, remote storage or both, depending on the storage type.[1]

Which engines does Uniffle support?

The 0.10.0 README lists:[1]

  • Apache Spark 2.3, 2.4 and 3.0 through 3.5. The release's Maven build profiles go up to Spark 3.5.[6]
  • Hadoop MapReduce, built against Hadoop 2.8.5 and 3.2.1.
  • Apache Tez.

How do you use Uniffle with Apache Spark?

A Spark application uses Uniffle by adding the client jar and replacing the shuffle manager:[1]

spark.serializer             org.apache.spark.serializer.KryoSerializer
spark.shuffle.manager        org.apache.spark.shuffle.RssShuffleManager
spark.rss.coordinator.quorum <coordinatorIp1>:19999,<coordinatorIp2>:19999

Dynamic allocation needs extra setup. For Spark 3.5 and later, setting spark.shuffle.sort.io.plugin.class=org.apache.spark.shuffle.RssShuffleDataIo lets Spark release executors without the external shuffle service. For older versions, Uniffle ships patches for Spark 2.3.4, 2.4.6, 3.0.1, 3.1.2, 3.2.1, 3.3.1 and 3.4.1 that must be applied before rebuilding Spark.[1] The spark.shuffle.sort.io.plugin.class hook is Spark's shuffle storage API, available since Spark 3.0.0.[7]

How is Uniffle deployed?

Uniffle is deployed as its own cluster, separate from the compute engine. Coordinators and shuffle servers are configured through conf/rss-env.sh, coordinator.conf and server.conf, and a coordinator can hand default client settings to jobs through a dynamic client configuration file.[1] On Kubernetes, the Uniffle operator manages Uniffle clusters; its API is in beta (v1alpha1) at 0.10.0.[8] The project also ships a web dashboard.[9]

Uniffle compared with Apache Celeborn

Apache Celeborn is the other remote shuffle service at the ASF. The two share the same basic design: map output is pushed to dedicated servers, and the engine connects through spark.shuffle.manager. The table shows where they differ in their latest releases.

Apache Celeborn 0.7.0 Apache Uniffle 0.10.0
Control plane Masters, with state replicated through Raft[10] Coordinator cluster[1]
Spark versions 3.0 to 4.2[10] 2.3 to 3.5[1]
Other engines Flink 1.18 to 2.3 (batch), MapReduce 3, Tez (experimental)[10] MapReduce, Tez[1]
Kubernetes Helm chart[11] Operator (beta)[8]
Origin Alibaba, 2020[12] Tencent, 2020[2]
Top-level project since 2024-03-21[13] 2025-02-19[3]

See also

References

  1. ↑ 1.00 1.01 1.02 1.03 1.04 1.05 1.06 1.07 1.08 1.09 1.10 1.11 Apache Uniffle README (v0.10.0). Apache Software Foundation.Retrieved 2026-11-23.
  2. ↑ 2.0 2.1 Uniffle Proposal. Apache Incubator.Retrieved 2026-11-23.
  3. ↑ 3.0 3.1 Uniffle Project Incubation Status. Apache Incubator.Retrieved 2026-11-23.
  4. ↑ Download. Apache Uniffle.Retrieved 2026-11-23.
  5. ↑ Uniffle Shuffle Server Guide (v0.10.0). Apache Software Foundation.Retrieved 2026-11-23.
  6. ↑ pom.xml (Uniffle v0.10.0). Apache Software Foundation.Retrieved 2026-11-23.
  7. ↑ config/package.scala (v4.3.0). Apache Software Foundation.Retrieved 2026-11-23.
  8. ↑ 8.0 8.1 Uniffle Operator (v0.10.0). Apache Software Foundation.Retrieved 2026-11-23.
  9. ↑ Dashboard Guide (v0.10.0). Apache Software Foundation.Retrieved 2026-11-23.
  10. ↑ 10.0 10.1 10.2 Apache Celeborn README (v0.7.0). Apache Software Foundation.Retrieved 2026-11-23.
  11. ↑ Deploy Celeborn on Kubernetes (v0.7.0). Apache Software Foundation.Retrieved 2026-11-23.
  12. ↑ Celeborn Proposal. Apache Incubator.Retrieved 2026-11-23.
  13. ↑ Celeborn Project Incubation Status. Apache Incubator.Retrieved 2026-11-23.