<?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_Spark</id>
	<title>Apache 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_Spark"/>
	<link rel="alternate" type="text/html" href="https://openlakehouse.io/w/index.php?title=Apache_Spark&amp;action=history"/>
	<updated>2026-12-06T00:08:06Z</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_Spark&amp;diff=48&amp;oldid=prev</id>
		<title>Open Lakehouse Wiki sync: Sync from open-lakehouse/wiki@355a38d</title>
		<link rel="alternate" type="text/html" href="https://openlakehouse.io/w/index.php?title=Apache_Spark&amp;diff=48&amp;oldid=prev"/>
		<updated>2026-11-22T18:53:20Z</updated>

		<summary type="html">&lt;p&gt;Sync from open-lakehouse/wiki@355a38d&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Infobox software&lt;br /&gt;
| name                = Apache Spark&lt;br /&gt;
| developer           = [[Apache Software Foundation]]&lt;br /&gt;
| initial_release     = 2010 (open sourced)&lt;br /&gt;
| latest_release      = 4.3.0&lt;br /&gt;
| latest_release_date = 2026-10-30&lt;br /&gt;
| written_in          = Scala, Java, Python&lt;br /&gt;
| type                = Distributed data processing engine&lt;br /&gt;
| license             = Apache License 2.0&lt;br /&gt;
| website             = [https://spark.apache.org spark.apache.org]&lt;br /&gt;
| repo                = [https://github.com/apache/spark github.com/apache/spark]&lt;br /&gt;
| related             = [[Spark Connect]], [[Spark Declarative Pipelines]], [[Structured Streaming]], [[Apache Iceberg]], [[Delta Lake]]&lt;br /&gt;
}}&lt;br /&gt;
{{Verified|2026-11-22|the spark.apache.org news page and release notes (latest release 4.3.0), the v4.3.0 tag of apache/spark and its documentation}}&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Apache Spark&amp;#039;&amp;#039;&amp;#039; is an open source, distributed engine for large-scale data processing, with high-level APIs in Java, Scala, Python and R and an optimized engine that runs general execution graphs.&amp;lt;ref name=&amp;quot;docs-index&amp;quot;&amp;gt;{{Cite web |url=https://spark.apache.org/docs/4.3.0/ |title=Spark Overview (Spark 4.3.0 documentation) |publisher=Apache Software Foundation |access-date=2026-11-22}}&amp;lt;/ref&amp;gt; Spark runs batch queries, SQL, stream processing and machine learning on one engine, on a single machine or on a cluster. In an [[open lakehouse]], Spark is one of the engines that reads and writes [[Open table format|open table formats]] such as [[Apache Iceberg]] and [[Delta Lake]] through a shared [[data catalog]].&lt;br /&gt;
&lt;br /&gt;
== Architecture ==&lt;br /&gt;
A Spark application runs as a set of independent processes on a cluster. The &amp;#039;&amp;#039;&amp;#039;driver&amp;#039;&amp;#039;&amp;#039; program holds the &amp;lt;code&amp;gt;SparkContext&amp;lt;/code&amp;gt; (wrapped by &amp;lt;code&amp;gt;SparkSession&amp;lt;/code&amp;gt; in the DataFrame API) and plans the work. The driver connects to a &amp;#039;&amp;#039;&amp;#039;cluster manager&amp;#039;&amp;#039;&amp;#039;, which allocates resources, and then obtains &amp;#039;&amp;#039;&amp;#039;executors&amp;#039;&amp;#039;&amp;#039;: processes on worker nodes that run computations and store data for the application. The driver sends application code and then &amp;#039;&amp;#039;&amp;#039;tasks&amp;#039;&amp;#039;&amp;#039; to the executors.&amp;lt;ref name=&amp;quot;cluster&amp;quot;&amp;gt;{{Cite web |url=https://spark.apache.org/docs/4.3.0/cluster-overview.html |title=Cluster Mode Overview (Spark 4.3.0) |publisher=Apache Software Foundation |access-date=2026-11-22}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Each Spark application gets its own executor processes, which stay up for the whole application. This isolates applications from one another, but it also means two Spark applications cannot share in-memory data without writing it to external storage.&amp;lt;ref name=&amp;quot;cluster&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Execution model ===&lt;br /&gt;
Spark evaluates transformations lazily. A transformation such as a filter or a join only records how a dataset is derived; Spark computes it when an &amp;#039;&amp;#039;&amp;#039;action&amp;#039;&amp;#039;&amp;#039;, such as &amp;lt;code&amp;gt;collect&amp;lt;/code&amp;gt; or a write, needs a result. The Spark documentation explains that this lets Spark run more efficiently, for example by returning only the result of a final aggregation to the driver instead of a large intermediate dataset.&amp;lt;ref&amp;gt;{{Cite web |url=https://spark.apache.org/docs/4.3.0/rdd-programming-guide.html |title=RDD Programming Guide (Spark 4.3.0) |publisher=Apache Software Foundation |access-date=2026-11-22}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A Spark &amp;#039;&amp;#039;&amp;#039;job&amp;#039;&amp;#039;&amp;#039; is a parallel computation that Spark starts in response to an action. Spark divides each job into &amp;#039;&amp;#039;&amp;#039;stages&amp;#039;&amp;#039;&amp;#039;, sets of tasks that depend on one another in a similar way to the map and reduce stages of MapReduce, and sends each &amp;#039;&amp;#039;&amp;#039;task&amp;#039;&amp;#039;&amp;#039; to one executor.&amp;lt;ref name=&amp;quot;cluster&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &amp;#039;&amp;#039;&amp;#039;deploy mode&amp;#039;&amp;#039;&amp;#039; sets where the driver runs. In cluster mode, the driver is launched inside the cluster; in client mode, the process that submits the application runs the driver outside the cluster.&amp;lt;ref name=&amp;quot;cluster&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Cluster managers ===&lt;br /&gt;
Spark 4.3 supports three cluster managers: Spark&amp;#039;s own &amp;#039;&amp;#039;&amp;#039;standalone&amp;#039;&amp;#039;&amp;#039; manager, &amp;#039;&amp;#039;&amp;#039;Hadoop YARN&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;Kubernetes&amp;#039;&amp;#039;&amp;#039;. Applications are submitted to any of them with the &amp;lt;code&amp;gt;spark-submit&amp;lt;/code&amp;gt; script. Each driver also serves a web UI, by default on port 4040.&amp;lt;ref name=&amp;quot;cluster&amp;quot; /&amp;gt; The project also maintains a separate Spark Kubernetes Operator for running Spark applications and clusters through Kubernetes custom resources.&amp;lt;ref name=&amp;quot;docs-index&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== APIs and libraries ==&lt;br /&gt;
Spark exposes several libraries on top of its core engine:&amp;lt;ref name=&amp;quot;docs-index&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Spark SQL and DataFrames&amp;#039;&amp;#039;&amp;#039;: structured data processing through SQL or the DataFrame and Dataset APIs, optimized by the Catalyst query optimizer.&amp;lt;ref name=&amp;quot;r200&amp;quot;&amp;gt;{{Cite web |url=https://spark.apache.org/releases/spark-release-2-0-0.html |title=Spark Release 2.0.0 |publisher=Apache Software Foundation |access-date=2026-11-22}}&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;{{Cite web |url=https://spark.apache.org/docs/4.3.0/sql-programming-guide.html |title=Spark SQL, DataFrames and Datasets Guide (Spark 4.3.0) |publisher=Apache Software Foundation |access-date=2026-11-22}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;[[Structured Streaming]]&amp;#039;&amp;#039;&amp;#039;: stream processing built on the Spark SQL engine, using the same DataFrame operations as batch queries.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;MLlib&amp;#039;&amp;#039;&amp;#039;: a library of machine learning algorithms and pipelines.&amp;lt;ref&amp;gt;{{Cite web |url=https://spark.apache.org/docs/4.3.0/ml-guide.html |title=MLlib: Main Guide (Spark 4.3.0) |publisher=Apache Software Foundation |access-date=2026-11-22}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;pandas API on Spark&amp;#039;&amp;#039;&amp;#039;: a pandas-compatible API that runs on Spark. It was added in Spark 3.2.0.&amp;lt;ref name=&amp;quot;r320&amp;quot;&amp;gt;{{Cite web |url=https://spark.apache.org/releases/spark-release-3-2-0.html |title=Spark Release 3.2.0 |publisher=Apache Software Foundation |access-date=2026-11-22}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;GraphX&amp;#039;&amp;#039;&amp;#039;: graph processing.&amp;lt;ref name=&amp;quot;docs-index&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The R API (SparkR) is marked as deprecated in the Spark 4.3 documentation. Spark 4.3 runs on Java 17, 21 or 25, Scala 2.13 and Python 3.11 or later.&amp;lt;ref name=&amp;quot;docs-index&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A short PySpark example that reads a table and aggregates it:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
from pyspark.sql import SparkSession&lt;br /&gt;
from pyspark.sql import functions as F&lt;br /&gt;
&lt;br /&gt;
spark = SparkSession.builder.appName(&amp;quot;example&amp;quot;).getOrCreate()&lt;br /&gt;
&lt;br /&gt;
orders = spark.read.table(&amp;quot;sales.orders&amp;quot;)&lt;br /&gt;
daily = orders.groupBy(&amp;quot;order_date&amp;quot;).agg(F.sum(&amp;quot;amount&amp;quot;).alias(&amp;quot;revenue&amp;quot;))&lt;br /&gt;
daily.write.mode(&amp;quot;overwrite&amp;quot;).saveAsTable(&amp;quot;sales.daily_revenue&amp;quot;)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Spark Connect ==&lt;br /&gt;
{{Main|Spark Connect}}&lt;br /&gt;
Spark Connect is a client-server protocol, introduced in Spark 3.4, in which a thin client sends unresolved logical plans to a Spark server over gRPC and receives results as Apache Arrow batches.&amp;lt;ref name=&amp;quot;connect&amp;quot;&amp;gt;{{Cite web |url=https://spark.apache.org/docs/4.3.0/spark-connect-overview.html |title=Spark Connect Overview (Spark 4.3.0) |publisher=Apache Software Foundation |access-date=2026-11-22}}&amp;lt;/ref&amp;gt; The client does not run inside the driver process, so applications can run in IDEs, notebooks and services away from the cluster. Besides the Python and Scala clients in the main repository, the Spark project maintains separate Spark Connect clients for Go, Rust and Swift.&amp;lt;ref&amp;gt;{{Cite web |url=https://github.com/apache/spark-connect-go |title=apache/spark-connect-go |publisher=GitHub |access-date=2026-11-22}}&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;{{Cite web |url=https://github.com/apache/spark-connect-rust |title=apache/spark-connect-rust |publisher=GitHub |access-date=2026-11-22}}&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;{{Cite web |url=https://github.com/apache/spark-connect-swift |title=apache/spark-connect-swift |publisher=GitHub |access-date=2026-11-22}}&amp;lt;/ref&amp;gt; Spark 4.0 added a lightweight Python client package (&amp;lt;code&amp;gt;pyspark-client&amp;lt;/code&amp;gt;) and the &amp;lt;code&amp;gt;spark.api.mode&amp;lt;/code&amp;gt; setting, which lets a classic application switch to Spark Connect.&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;
&lt;br /&gt;
== Spark Declarative Pipelines ==&lt;br /&gt;
{{Main|Spark Declarative Pipelines}}&lt;br /&gt;
Spark Declarative Pipelines (SDP), added in Spark 4.1.0, is a framework in which a user declares datasets (streaming tables, materialized views and temporary views) and the flows that fill them, and Spark works out the dependency order, parallelism, checkpoints and retries.&amp;lt;ref name=&amp;quot;r410&amp;quot;&amp;gt;{{Cite web |url=https://spark.apache.org/releases/spark-release-4.1.0.html |title=Spark Release 4.1.0 |publisher=Apache Software Foundation |access-date=2026-11-22}}&amp;lt;/ref&amp;gt; Pipelines are run with the &amp;lt;code&amp;gt;spark-pipelines&amp;lt;/code&amp;gt; command line tool.&amp;lt;ref&amp;gt;{{Cite web |url=https://spark.apache.org/docs/4.3.0/declarative-pipelines-programming-guide.html |title=Spark Declarative Pipelines Programming Guide (Spark 4.3.0) |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 started in 2009 as a research project at the AMPLab of the University of California, Berkeley, and was open sourced in early 2010. The project moved to the Apache Software Foundation in 2013.&amp;lt;ref name=&amp;quot;history&amp;quot;&amp;gt;{{Cite web |url=https://spark.apache.org/history.html |title=History |publisher=Apache Software Foundation |access-date=2026-11-22}}&amp;lt;/ref&amp;gt; The ASF announced on 27 February 2014 that Spark had graduated from the Apache Incubator to become a top-level project.&amp;lt;ref&amp;gt;{{Cite web |url=https://news.apache.org/foundation/entry/the_apache_software_foundation_announces50 |title=The Apache Software Foundation Announces Apache Spark as a Top-Level Project |publisher=The ASF Blog |date=2014-02-27 |access-date=2026-11-22}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Version !! Announced !! Selected changes&lt;br /&gt;
|-&lt;br /&gt;
| 1.0.0 || 2014-05-30 || First release of the 1.x line&amp;lt;ref name=&amp;quot;news&amp;quot;&amp;gt;{{Cite web |url=https://github.com/apache/spark-website/tree/asf-site/news/_posts |title=spark-website news posts |publisher=Apache Software Foundation |access-date=2026-11-22}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| 2.0.0 || 2016-07-26 || First, experimental release of Structured Streaming&amp;lt;ref name=&amp;quot;news&amp;quot; /&amp;gt;&amp;lt;ref name=&amp;quot;r200&amp;quot; /&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| 3.0.0 || 2020-06-18 || First release of the 3.x line; adaptive query execution, dynamic partition pruning&amp;lt;ref name=&amp;quot;news&amp;quot; /&amp;gt;&amp;lt;ref&amp;gt;{{Cite web |url=https://spark.apache.org/releases/spark-release-3-0-0.html |title=Spark Release 3.0.0 |publisher=Apache Software Foundation |access-date=2026-11-22}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| 3.4.0 || 2023-04-13 || Python client for Spark Connect&amp;lt;ref name=&amp;quot;news&amp;quot; /&amp;gt;&amp;lt;ref&amp;gt;{{Cite web |url=https://spark.apache.org/releases/spark-release-3-4-0.html |title=Spark Release 3.4.0 |publisher=Apache Software Foundation |access-date=2026-11-22}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| 4.0.0 || 2025-05-23 || First release of the 4.x line; VARIANT type, SQL user-defined functions, pipe syntax, Arbitrary State API v2 (&amp;lt;code&amp;gt;transformWithState&amp;lt;/code&amp;gt;)&amp;lt;ref name=&amp;quot;news&amp;quot; /&amp;gt;&amp;lt;ref name=&amp;quot;r400&amp;quot; /&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| 4.1.0 || 2025-12-16 || Spark Declarative Pipelines; Real-time Mode in Structured Streaming; SQL scripting and VARIANT enabled by default&amp;lt;ref name=&amp;quot;news&amp;quot; /&amp;gt;&amp;lt;ref name=&amp;quot;r410&amp;quot; /&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| 4.2.0 || 2026-07-14 || SQL &amp;lt;code&amp;gt;CHANGES&amp;lt;/code&amp;gt; clause for change data capture; Auto CDC in Declarative Pipelines&amp;lt;ref name=&amp;quot;news&amp;quot; /&amp;gt;&amp;lt;ref name=&amp;quot;r420&amp;quot;&amp;gt;{{Cite web |url=https://spark.apache.org/releases/spark-release-4-2-0.html |title=Spark Release 4.2.0 |publisher=Apache Software Foundation |access-date=2026-11-22}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| 4.3.0 || 2026-10-30 || Stateful queries in Real-time Mode; SCD Type 2 Auto CDC; start of a quarterly feature-release cadence&amp;lt;ref name=&amp;quot;news&amp;quot; /&amp;gt;&amp;lt;ref name=&amp;quot;r430&amp;quot;&amp;gt;{{Cite web |url=https://spark.apache.org/releases/spark-release-4-3-0.html |title=Spark Release 4.3.0 |publisher=Apache Software Foundation |access-date=2026-11-22}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Older release lines continue to receive maintenance releases; Spark 4.2.1, 4.1.4 and 4.0.5 were announced on 27 October 2026, three days before 4.3.0.&amp;lt;ref&amp;gt;{{Cite web |url=https://spark.apache.org/news/ |title=Spark News |publisher=Apache Software Foundation |access-date=2026-11-22}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Use in an open lakehouse ==&lt;br /&gt;
Spark reads and writes lakehouse tables through table format connectors and its catalog plugin API. A catalog is registered by setting Spark properties under &amp;lt;code&amp;gt;spark.sql.catalog.&amp;amp;lt;name&amp;amp;gt;&amp;lt;/code&amp;gt;; the [[Apache Iceberg]] documentation, for example, shows a catalog of type &amp;lt;code&amp;gt;rest&amp;lt;/code&amp;gt; that talks to an [[Iceberg REST catalog]].&amp;lt;ref&amp;gt;{{Cite web |url=https://iceberg.apache.org/docs/latest/spark-configuration/ |title=Spark Configuration |publisher=Apache Iceberg |access-date=2026-11-22}}&amp;lt;/ref&amp;gt; [[Delta Lake]] is enabled with the &amp;lt;code&amp;gt;io.delta.sql.DeltaSparkSessionExtension&amp;lt;/code&amp;gt; SQL extension and the &amp;lt;code&amp;gt;DeltaCatalog&amp;lt;/code&amp;gt; session catalog.&amp;lt;ref&amp;gt;{{Cite web |url=https://docs.delta.io/quick-start/ |title=Quickstart |publisher=Delta Lake |access-date=2026-11-22}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Because the table data sits in open formats such as [[Apache Parquet]] and the metadata sits in a catalog such as [[Unity Catalog]] or [[Apache Polaris]], the same tables Spark writes can be queried by other engines, for example [[Trino]] or [[DuckDB]]. Spark is commonly used for the ingestion and transformation layers of a [[medallion architecture]], with [[Apache Airflow]] or Spark Declarative Pipelines deciding when each step runs.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Spark Connect]]&lt;br /&gt;
* [[Spark Declarative Pipelines]]&lt;br /&gt;
* [[Structured Streaming]]&lt;br /&gt;
* [[Open lakehouse]]&lt;br /&gt;
* [[Apache Iceberg]]&lt;br /&gt;
* [[Delta Lake]]&lt;br /&gt;
* [[Apache Airflow]]&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:Query engines]]&lt;br /&gt;
[[Category:Apache Spark]]&lt;/div&gt;</summary>
		<author><name>Open Lakehouse Wiki sync</name></author>
	</entry>
</feed>