<?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=Pyspark-client</id>
	<title>Pyspark-client - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://openlakehouse.io/w/index.php?action=history&amp;feed=atom&amp;title=Pyspark-client"/>
	<link rel="alternate" type="text/html" href="https://openlakehouse.io/w/index.php?title=Pyspark-client&amp;action=history"/>
	<updated>2026-12-06T00:13:54Z</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=Pyspark-client&amp;diff=168&amp;oldid=prev</id>
		<title>Open Lakehouse Wiki sync: Sync from open-lakehouse/wiki@7c9abaa</title>
		<link rel="alternate" type="text/html" href="https://openlakehouse.io/w/index.php?title=Pyspark-client&amp;diff=168&amp;oldid=prev"/>
		<updated>2026-11-25T00:52:48Z</updated>

		<summary type="html">&lt;p&gt;Sync from open-lakehouse/wiki@7c9abaa&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{DISPLAYTITLE:pyspark-client}}&lt;br /&gt;
{{Infobox software&lt;br /&gt;
| name                = pyspark-client&lt;br /&gt;
| developer           = [[Apache Software Foundation]] ([[Apache Spark]] project)&lt;br /&gt;
| initial_release     = 4.0.0 (2025-05-23)&lt;br /&gt;
| latest_release      = 4.3.0&lt;br /&gt;
| latest_release_date = 2026-10-30&lt;br /&gt;
| written_in          = Python&lt;br /&gt;
| type                = Pure-Python [[Spark Connect]] client library&lt;br /&gt;
| license             = Apache License 2.0&lt;br /&gt;
| website             = [https://pypi.org/project/pyspark-client/ pypi.org/project/pyspark-client]&lt;br /&gt;
| repo                = [https://github.com/apache/spark/tree/v4.3.0/python/packaging/client github.com/apache/spark (python/packaging/client)]&lt;br /&gt;
| related             = [[Spark Connect]], [[Apache Spark]], [[Pandas API on Spark]]&lt;br /&gt;
}}&lt;br /&gt;
{{Verified|2026-11-23|the pyspark-client, pyspark and pyspark-connect release histories and metadata on PyPI (latest 4.3.0, uploaded 2026-10-30), python/packaging/client/setup.py and python/packaging/classic/setup.py at tags v4.0.0 and v4.3.0, python/docs/source/getting_started/install.rst at v4.0.0 and v4.3.0, docs/spark-connect-overview.md at v4.3.0, the Spark 4.0.0 release notes and SPARK-47540}}&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;pyspark-client&amp;#039;&amp;#039;&amp;#039; is the pure-Python [[Spark Connect]] client for [[Apache Spark]], published on PyPI, which lets a Python program use the PySpark DataFrame, SQL and streaming APIs against a remote Spark Connect server without a Java runtime or Spark JAR files on the client machine.&amp;lt;ref name=&amp;quot;install430&amp;quot;&amp;gt;{{Cite web |url=https://github.com/apache/spark/blob/v4.3.0/python/docs/source/getting_started/install.rst |title=Installation (python/docs/source/getting_started/install.rst at v4.3.0) |publisher=Apache Software Foundation |access-date=2026-11-23}}&amp;lt;/ref&amp;gt; The package was first released with Spark 4.0.0, and its version numbers follow Spark releases.&amp;lt;ref name=&amp;quot;pypi&amp;quot;&amp;gt;{{Cite web |url=https://pypi.org/project/pyspark-client/#history |title=pyspark-client release history |publisher=Python Package Index |access-date=2026-11-23}}&amp;lt;/ref&amp;gt; It is installed with &amp;lt;code&amp;gt;pip install pyspark-client&amp;lt;/code&amp;gt; and supports only remote connections through &amp;lt;code&amp;gt;spark.remote&amp;lt;/code&amp;gt; with an &amp;lt;code&amp;gt;sc://&amp;lt;/code&amp;gt; connection URI.&amp;lt;ref name=&amp;quot;install430&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== What is pyspark-client? ==&lt;br /&gt;
pyspark-client is a separate distribution of the PySpark source tree that contains only Python code. The Spark installation guide describes it as a pure Python library that does not depend on non-Python components such as JARs or a Java Runtime Environment (JRE).&amp;lt;ref name=&amp;quot;install430&amp;quot; /&amp;gt; The PyPI package name is &amp;lt;code&amp;gt;pyspark-client&amp;lt;/code&amp;gt;; the import name stays &amp;lt;code&amp;gt;pyspark&amp;lt;/code&amp;gt;, so code written for Spark Connect runs unchanged.&amp;lt;ref name=&amp;quot;setup430&amp;quot;&amp;gt;{{Cite web |url=https://github.com/apache/spark/blob/v4.3.0/python/packaging/client/setup.py |title=python/packaging/client/setup.py (v4.3.0) |publisher=Apache Software Foundation |access-date=2026-11-23}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The Spark 4.0.0 release notes list &amp;quot;a new lightweight Python client (pyspark-client) at just 1.5 MB&amp;quot; among the Spark Connect changes of that release.&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-23}}&amp;lt;/ref&amp;gt; On PyPI, the 4.3.0 source distribution of pyspark-client is 1,745,601 bytes, while the 4.3.0 source distribution of the full &amp;lt;code&amp;gt;pyspark&amp;lt;/code&amp;gt; package, which bundles the Spark JARs, is 455,910,862 bytes.&amp;lt;ref name=&amp;quot;pypi&amp;quot; /&amp;gt;&amp;lt;ref name=&amp;quot;pypi-pyspark&amp;quot;&amp;gt;{{Cite web |url=https://pypi.org/project/pyspark/4.3.0/#files |title=pyspark 4.3.0 (files) |publisher=Python Package Index |access-date=2026-11-23}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== How is pyspark-client installed and used? ==&lt;br /&gt;
pyspark-client 4.3.0 requires Python 3.11 or later and installs pandas (2.2.0 or later), PyArrow (18.0.0 or later), grpcio and grpcio-status (1.76.0 or later), googleapis-common-protos, zstandard, NumPy and PyYAML as dependencies.&amp;lt;ref name=&amp;quot;setup430&amp;quot; /&amp;gt; The 4.0.0 release required Python 3.9 or later.&amp;lt;ref name=&amp;quot;setup400&amp;quot;&amp;gt;{{Cite web |url=https://github.com/apache/spark/blob/v4.0.0/python/packaging/client/setup.py |title=python/packaging/client/setup.py (v4.0.0) |publisher=Apache Software Foundation |access-date=2026-11-23}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The Spark Connect documentation recommends pinning the client to the Spark release in use, for example &amp;lt;code&amp;gt;pip install pyspark-client==4.3&amp;lt;/code&amp;gt;, and then creating a session with &amp;lt;code&amp;gt;SparkSession.builder.remote()&amp;lt;/code&amp;gt;.&amp;lt;ref name=&amp;quot;overview&amp;quot;&amp;gt;{{Cite web |url=https://github.com/apache/spark/blob/v4.3.0/docs/spark-connect-overview.md |title=Spark Connect Overview (docs/spark-connect-overview.md at v4.3.0) |publisher=Apache Software Foundation |access-date=2026-11-23}}&amp;lt;/ref&amp;gt; The server side is a Spark Connect server, which by default listens on port 15002; see [[Spark Connect]].&amp;lt;ref name=&amp;quot;overview&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
# pip install pyspark-client==4.3.0&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.remote(&amp;quot;sc://localhost:15002&amp;quot;).getOrCreate()&lt;br /&gt;
&lt;br /&gt;
df = spark.range(10).withColumn(&amp;quot;even&amp;quot;, F.col(&amp;quot;id&amp;quot;) % 2 == 0)&lt;br /&gt;
df.groupBy(&amp;quot;even&amp;quot;).count().show()&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== What is missing compared with PySpark? ==&lt;br /&gt;
pyspark-client leaves out the parts of PySpark that need a local JVM. Compared with the classic &amp;lt;code&amp;gt;pyspark&amp;lt;/code&amp;gt; package at v4.3.0, its package list omits &amp;lt;code&amp;gt;pyspark.core&amp;lt;/code&amp;gt; (the module that holds &amp;lt;code&amp;gt;SparkContext&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;RDD&amp;lt;/code&amp;gt; and broadcast variables), &amp;lt;code&amp;gt;pyspark.sql.classic&amp;lt;/code&amp;gt; (the Py4J-based DataFrame implementation), and the bundled &amp;lt;code&amp;gt;jars&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;sbin&amp;lt;/code&amp;gt; directories.&amp;lt;ref name=&amp;quot;setup430&amp;quot; /&amp;gt;&amp;lt;ref name=&amp;quot;classic430&amp;quot;&amp;gt;{{Cite web |url=https://github.com/apache/spark/blob/v4.3.0/python/packaging/classic/setup.py |title=python/packaging/classic/setup.py (v4.3.0) |publisher=Apache Software Foundation |access-date=2026-11-23}}&amp;lt;/ref&amp;gt; It also does not depend on Py4J, which the full package requires.&amp;lt;ref name=&amp;quot;setup430&amp;quot; /&amp;gt;&amp;lt;ref name=&amp;quot;pypi-pyspark&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Because pyspark-client speaks only the Spark Connect protocol, the general Spark Connect limits apply to it. The Spark documentation lists them: the client cannot reach the driver JVM, so private fields such as &amp;lt;code&amp;gt;df._jdf&amp;lt;/code&amp;gt; do not exist; RDDs are not supported; and the client has no access to &amp;lt;code&amp;gt;SparkContext&amp;lt;/code&amp;gt; or to the static Spark configuration.&amp;lt;ref name=&amp;quot;overview&amp;quot; /&amp;gt; The [[RDD]] API is therefore unavailable, and code that calls &amp;lt;code&amp;gt;spark.sparkContext&amp;lt;/code&amp;gt; must be rewritten with DataFrame APIs.&lt;br /&gt;
&lt;br /&gt;
pyspark-client cannot start Spark by itself. The installation guide says it supports only &amp;lt;code&amp;gt;spark.remote&amp;lt;/code&amp;gt; with connection URIs; it has no local mode, and the user must run a Spark Connect server separately.&amp;lt;ref name=&amp;quot;install430&amp;quot; /&amp;gt; The SPIP that proposed the pure-Python package also excluded full compatibility with classic PySpark (such as the RDD API), launching the server and local mode from its scope.&amp;lt;ref name=&amp;quot;spip&amp;quot;&amp;gt;{{Cite web |url=https://issues.apache.org/jira/browse/SPARK-47540 |title=SPARK-47540: SPIP: Pure Python Package (Spark Connect) |publisher=Apache Software Foundation JIRA |access-date=2026-11-23}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Most of the PySpark API is still present. The package includes &amp;lt;code&amp;gt;pyspark.sql&amp;lt;/code&amp;gt; with its Spark Connect implementation, Structured Streaming, &amp;lt;code&amp;gt;pyspark.ml&amp;lt;/code&amp;gt;, the [[Pandas API on Spark]] (&amp;lt;code&amp;gt;pyspark.pandas&amp;lt;/code&amp;gt;) and the &amp;lt;code&amp;gt;pyspark.pipelines&amp;lt;/code&amp;gt; module of [[Spark Declarative Pipelines]].&amp;lt;ref name=&amp;quot;setup430&amp;quot; /&amp;gt; The Spark API reference labels each API that &amp;quot;Supports Spark Connect&amp;quot;.&amp;lt;ref name=&amp;quot;overview&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== How does pyspark-client differ from pyspark and pyspark-connect? ==&lt;br /&gt;
Spark publishes three Python packages from the same source tree:&amp;lt;ref name=&amp;quot;install430&amp;quot; /&amp;gt;&amp;lt;ref name=&amp;quot;setup430&amp;quot; /&amp;gt;&amp;lt;ref name=&amp;quot;classic430&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! PyPI package !! Contents !! Bundles Spark JARs !! Connection modes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;pyspark-client&amp;lt;/code&amp;gt; || Python code only; no JARs, no Py4J || No || &amp;lt;code&amp;gt;spark.remote&amp;lt;/code&amp;gt; with an &amp;lt;code&amp;gt;sc://&amp;lt;/code&amp;gt; URI only&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;pyspark&amp;lt;/code&amp;gt; || Full PySpark with the Spark JARs and Py4J; Spark Connect available through the &amp;lt;code&amp;gt;connect&amp;lt;/code&amp;gt; extra || Yes || Classic (Py4J) and Spark Connect&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;pyspark-connect&amp;lt;/code&amp;gt; || A small package that depends on the same version of &amp;lt;code&amp;gt;pyspark&amp;lt;/code&amp;gt; and makes Spark Connect the default || Yes, through its &amp;lt;code&amp;gt;pyspark&amp;lt;/code&amp;gt; dependency || &amp;lt;code&amp;gt;spark.master&amp;lt;/code&amp;gt; with a local Connect server, or &amp;lt;code&amp;gt;spark.remote&amp;lt;/code&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;pyspark-connect&amp;lt;/code&amp;gt; 4.3.0 package on PyPI depends on &amp;lt;code&amp;gt;pyspark==4.3.0&amp;lt;/code&amp;gt;, so it brings in the full JVM-backed distribution; pyspark-client does not.&amp;lt;ref name=&amp;quot;pypi-connect&amp;quot;&amp;gt;{{Cite web |url=https://pypi.org/project/pyspark-connect/4.3.0/ |title=pyspark-connect 4.3.0 |publisher=Python Package Index |access-date=2026-11-23}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== History ==&lt;br /&gt;
The pure-Python package was proposed in SPARK-47540, &amp;quot;SPIP: Pure Python Package (Spark Connect)&amp;quot;, filed on 25 March 2024 with fix version 4.0.0.&amp;lt;ref name=&amp;quot;spip&amp;quot; /&amp;gt; The SPIP text used the name &amp;lt;code&amp;gt;pyspark-connect&amp;lt;/code&amp;gt;; in the released code the pure-Python package is named &amp;lt;code&amp;gt;pyspark-client&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;pyspark-connect&amp;lt;/code&amp;gt; became the package that makes Connect the default for full PySpark.&amp;lt;ref name=&amp;quot;spip&amp;quot; /&amp;gt;&amp;lt;ref name=&amp;quot;setup400&amp;quot; /&amp;gt; The Spark 4.0.0 release notes list SPARK-47540 and the 1.5 MB client.&amp;lt;ref name=&amp;quot;r400&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
pyspark-client 4.0.0 was uploaded to PyPI on 23 May 2025, the release date of Spark 4.0.0. Later releases track Spark: 4.1.0 (16 December 2025), 4.2.0 (14 July 2026) and 4.3.0 (30 October 2026), with maintenance releases for older lines, such as 4.2.1, 4.1.4 and 4.0.5 on 27 October 2026.&amp;lt;ref name=&amp;quot;pypi&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Spark Connect]]&lt;br /&gt;
* [[Apache Spark]]&lt;br /&gt;
* [[RDD]]&lt;br /&gt;
* [[Pandas API on Spark]]&lt;br /&gt;
* [[Spark 3 to Spark 4 migration]]&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:Query engines]]&lt;br /&gt;
[[Category:Apache Spark]]&lt;/div&gt;</summary>
		<author><name>Open Lakehouse Wiki sync</name></author>
	</entry>
</feed>