<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://openlakehouse.io/w/index.php?action=history&amp;feed=atom&amp;title=Apache_Mesos_support_in_Spark</id>
	<title>Apache Mesos support in Spark - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://openlakehouse.io/w/index.php?action=history&amp;feed=atom&amp;title=Apache_Mesos_support_in_Spark"/>
	<link rel="alternate" type="text/html" href="https://openlakehouse.io/w/index.php?title=Apache_Mesos_support_in_Spark&amp;action=history"/>
	<updated>2026-12-06T00:08:17Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://openlakehouse.io/w/index.php?title=Apache_Mesos_support_in_Spark&amp;diff=91&amp;oldid=prev</id>
		<title>Open Lakehouse Wiki sync: Sync from open-lakehouse/wiki@f2492a3</title>
		<link rel="alternate" type="text/html" href="https://openlakehouse.io/w/index.php?title=Apache_Mesos_support_in_Spark&amp;diff=91&amp;oldid=prev"/>
		<updated>2026-11-23T00:34:50Z</updated>

		<summary type="html">&lt;p&gt;Sync from open-lakehouse/wiki@f2492a3&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Infobox concept&lt;br /&gt;
| name            = Apache Mesos support in Spark&lt;br /&gt;
| also_known_as   = Spark on Mesos, Mesos cluster manager&lt;br /&gt;
| field           = Cluster resource management&lt;br /&gt;
| introduced      = Before Spark 1.0; Spark was first built on Mesos&lt;br /&gt;
| key_parts       = &amp;lt;code&amp;gt;mesos://&amp;lt;/code&amp;gt; master URLs, coarse-grained and fine-grained modes, &amp;lt;code&amp;gt;MesosClusterDispatcher&amp;lt;/code&amp;gt;&lt;br /&gt;
| implementations = [[Apache Spark]] 3.5 and earlier&lt;br /&gt;
| related         = [[Executor]], [[Spark on Kubernetes]], [[Spark on YARN]], [[Spark 3 to Spark 4 migration]]&lt;br /&gt;
}}&lt;br /&gt;
{{Verified|2026-11-22|the v3.1.1, v3.2.0, v3.5.0 and v4.0.0 tags of apache/spark (docs/running-on-mesos.md, docs/core-migration-guide.md, resource-managers/), SPARK-35050, SPARK-44442, the Spark 4.0.0 release notes, the Apache Attic page for Mesos and the ASF board minutes}}&lt;br /&gt;
{{Status|removed |since=Apache Spark 3.2.0 |removed=Apache Spark 4.0.0 |replacement=[[Spark on Kubernetes]], [[Spark on YARN]] or the standalone cluster manager |note=Deprecated by SPARK-35050 and removed by SPARK-44442. |ref=&amp;lt;ref name=&amp;quot;jira44442&amp;quot;&amp;gt;{{Cite web |url=https://issues.apache.org/jira/browse/SPARK-44442 |title=SPARK-44442: Drop mesos support |publisher=Apache Software Foundation JIRA |access-date=2026-11-22}}&amp;lt;/ref&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Apache Mesos support in Spark&amp;#039;&amp;#039;&amp;#039; was the integration that let [[Apache Spark]] use Apache Mesos as its cluster manager: a Spark application pointed at a &amp;lt;code&amp;gt;mesos://&amp;lt;/code&amp;gt; master URL received resources from Mesos and ran its [[executor]]s as Mesos tasks.&amp;lt;ref name=&amp;quot;mesos35&amp;quot;&amp;gt;{{Cite web |url=https://github.com/apache/spark/blob/v3.5.0/docs/running-on-mesos.md |title=Running Spark on Mesos (docs/running-on-mesos.md at v3.5.0) |publisher=Apache Software Foundation |access-date=2026-11-22}}&amp;lt;/ref&amp;gt; Spark itself was first written as a Mesos framework. Spark deprecated Mesos support in 3.2.0 and removed it in 4.0.0, so Spark 3.5 is the last release line that can run on Mesos.&amp;lt;ref name=&amp;quot;mig400&amp;quot; /&amp;gt;&amp;lt;ref name=&amp;quot;jira44442&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Status ==&lt;br /&gt;
Mesos support was deprecated in one minor release and removed in the next major release.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Deprecated in Spark 3.2.0.&amp;#039;&amp;#039;&amp;#039; SPARK-35050, &amp;quot;Deprecate Apache Mesos as resource manager&amp;quot;, has fix version 3.2.0. Its description gives the reason: a thread on the Mesos dev list said that Mesos was moving to the Apache Attic and ceasing development.&amp;lt;ref name=&amp;quot;jira35050&amp;quot;&amp;gt;{{Cite web |url=https://issues.apache.org/jira/browse/SPARK-35050 |title=SPARK-35050: Deprecate Apache Mesos as resource manager |publisher=Apache Software Foundation JIRA |access-date=2026-11-22}}&amp;lt;/ref&amp;gt; From 3.2.0 the Mesos page of the Spark documentation opens with the note that Mesos support &amp;quot;is deprecated as of Apache Spark 3.2.0&amp;quot; and &amp;quot;will be removed in a future version&amp;quot;, and the core migration guide says the same.&amp;lt;ref name=&amp;quot;mesos35&amp;quot; /&amp;gt;&amp;lt;ref name=&amp;quot;mig400&amp;quot; /&amp;gt;&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Removed in Spark 4.0.0.&amp;#039;&amp;#039;&amp;#039; SPARK-44442, &amp;quot;Drop mesos support&amp;quot;, has fix version 4.0.0. The &amp;lt;code&amp;gt;resource-managers/mesos&amp;lt;/code&amp;gt; module is present at the v3.5.0 tag and absent at the v4.0.0 tag. The Spark 4.0.0 core migration guide states: &amp;quot;In Spark 4.0, support for Apache Mesos as a resource manager was removed.&amp;quot;&amp;lt;ref name=&amp;quot;jira44442&amp;quot; /&amp;gt;&amp;lt;ref name=&amp;quot;mig400&amp;quot;&amp;gt;{{Cite web |url=https://github.com/apache/spark/blob/v4.0.0/docs/core-migration-guide.md |title=Migration Guide: Spark Core (docs/core-migration-guide.md at v4.0.0) |publisher=Apache Software Foundation |access-date=2026-11-22}}&amp;lt;/ref&amp;gt; The 4.0.0 release notes list SPARK-44442 and show the &amp;lt;code&amp;gt;mesos&amp;lt;/code&amp;gt; library dependency (1.4.3) as removed.&amp;lt;ref name=&amp;quot;r400&amp;quot;&amp;gt;{{Cite web |url=https://spark.apache.org/releases/spark-release-4-0-0.html |title=Spark Release 4.0.0 |publisher=Apache Software Foundation |access-date=2026-11-22}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Fine-grained mode&amp;#039;&amp;#039;&amp;#039; was deprecated earlier, in Spark 2.0.0, as the Mesos documentation noted until support ended.&amp;lt;ref name=&amp;quot;mesos311&amp;quot;&amp;gt;{{Cite web |url=https://github.com/apache/spark/blob/v3.1.1/docs/running-on-mesos.md |title=Running Spark on Mesos (docs/running-on-mesos.md at v3.1.1) |publisher=Apache Software Foundation |access-date=2026-11-22}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The Mesos project itself is also gone. The ASF board approved a resolution to terminate the Apache Mesos project on 20 August 2025, and the Apache Attic records that Mesos retired in August 2025 and that its move to the Attic was completed in October 2025.&amp;lt;ref name=&amp;quot;board&amp;quot;&amp;gt;{{Cite web |url=https://www.apache.org/foundation/board/minutes/Mesos.html |title=Board minutes: Mesos |publisher=Apache Software Foundation |access-date=2026-11-22}}&amp;lt;/ref&amp;gt;&amp;lt;ref name=&amp;quot;attic&amp;quot;&amp;gt;{{Cite web |url=https://attic.apache.org/projects/mesos.html |title=Apache Mesos (Apache Attic) |publisher=Apache Software Foundation |access-date=2026-11-22}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== History ==&lt;br /&gt;
Spark began at UC Berkeley as an application of Mesos. The 2010 HotCloud paper that introduced Spark says that &amp;quot;Spark is built on top of Mesos&amp;quot;, a &amp;quot;cluster operating system&amp;quot; that lets several parallel applications share a cluster, and that building on Mesos reduced the programming effort Spark needed.&amp;lt;ref name=&amp;quot;paper&amp;quot;&amp;gt;{{Cite web |url=https://www.usenix.org/legacy/event/hotcloud10/tech/full_papers/Zaharia.pdf |title=Spark: Cluster Computing with Working Sets |publisher=USENIX HotCloud 2010 |access-date=2026-11-22}}&amp;lt;/ref&amp;gt; Spark later supported other cluster managers as well (its own standalone manager, Hadoop YARN and Kubernetes), and Mesos became one option among several.&lt;br /&gt;
&lt;br /&gt;
When the Mesos community discussed moving the project to the Attic, Spark deprecated its integration (SPARK-35050, April 2021).&amp;lt;ref name=&amp;quot;jira35050&amp;quot; /&amp;gt; The Mesos board reports record attic discussions again in 2023 and a request in February 2024 to hold off, before the board terminated the project in 2025.&amp;lt;ref name=&amp;quot;board&amp;quot; /&amp;gt; By then Spark had already removed the integration from its main branch in September 2023, in the work that became Spark 4.0.0.&amp;lt;ref name=&amp;quot;jira44442&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== How it worked ==&lt;br /&gt;
A Spark application used Mesos by setting its master URL to &amp;lt;code&amp;gt;mesos://host:5050&amp;lt;/code&amp;gt;, or to &amp;lt;code&amp;gt;mesos://zk://host1:2181,host2:2181/mesos&amp;lt;/code&amp;gt; for a Mesos cluster with several masters coordinated through ZooKeeper.&amp;lt;ref name=&amp;quot;mesos35&amp;quot; /&amp;gt; The Spark 3.5 documentation describes two scheduling modes, chosen with &amp;lt;code&amp;gt;spark.mesos.coarse&amp;lt;/code&amp;gt;:&amp;lt;ref name=&amp;quot;mesos35&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Coarse-grained mode&amp;#039;&amp;#039;&amp;#039; (default, &amp;lt;code&amp;gt;spark.mesos.coarse=true&amp;lt;/code&amp;gt;): Spark acquired one long-lived Mesos task per machine and ran an executor in it, much like executors on other cluster managers.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Fine-grained mode&amp;#039;&amp;#039;&amp;#039; (&amp;lt;code&amp;gt;spark.mesos.coarse=false&amp;lt;/code&amp;gt;, deprecated since 2.0.0): Spark created one Mesos task for each Spark task, so cores moved between applications as tasks finished, at the cost of higher task launch overhead.&lt;br /&gt;
&lt;br /&gt;
For cluster deploy mode, operators ran the &amp;lt;code&amp;gt;MesosClusterDispatcher&amp;lt;/code&amp;gt; (started with &amp;lt;code&amp;gt;sbin/start-mesos-dispatcher.sh&amp;lt;/code&amp;gt;) and submitted applications to its URL. The documentation warned that the dispatcher had no authentication.&amp;lt;ref name=&amp;quot;mesos35&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
# Spark 3.5 and earlier only; in Spark 4.0 spark-submit accepts only yarn, spark://, k8s:// and local masters&lt;br /&gt;
./bin/spark-shell --master mesos://host:5050&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Migrating off Mesos ==&lt;br /&gt;
Applications that ran on Mesos need another cluster manager to move to Spark 4. Spark 4.0 documents three: the standalone cluster manager, Hadoop YARN and Kubernetes.&amp;lt;ref&amp;gt;{{Cite web |url=https://github.com/apache/spark/blob/v4.0.0/docs/cluster-overview.md |title=Cluster Mode Overview (docs/cluster-overview.md at v4.0.0) |publisher=Apache Software Foundation |access-date=2026-11-22}}&amp;lt;/ref&amp;gt; Kubernetes is the closest match for a shared, multi-tenant cluster: each executor runs in its own pod, as each coarse-grained executor ran in its own Mesos task. All &amp;lt;code&amp;gt;spark.mesos.*&amp;lt;/code&amp;gt; settings stop having any effect and should be removed from configuration files. See [[Spark 3 to Spark 4 migration]] for the other changes in the same release.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Spark on Kubernetes]]&lt;br /&gt;
* [[Spark on YARN]]&lt;br /&gt;
* [[Executor]]&lt;br /&gt;
* [[Spark 3 to Spark 4 migration]]&lt;br /&gt;
* [[Apache Spark]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Navbox open lakehouse}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Concepts]]&lt;br /&gt;
[[Category:Glossary terms]]&lt;br /&gt;
[[Category:Apache Spark]]&lt;/div&gt;</summary>
		<author><name>Open Lakehouse Wiki sync</name></author>
	</entry>
</feed>