Spark Connect is a strictly experimental feature and under heavy development. All APIs should be considered volatile and should not be used in production.
This module contains the implementation of Spark Connect which is a logical plan facade for the implementation in Spark. Spark Connect is directly integrated into the build of Spark. To enable it, you only need to activate the driver plugin for Spark Connect.
./build/mvn -Phive clean packageor
./build/sbt -Phive clean packageTo run Spark Connect you locally built:
# Scala shell
./bin/spark-shell \
--jars `ls connector/connect/target/**/spark-connect*SNAPSHOT.jar | paste -sd ',' -` \
--conf spark.plugins=org.apache.spark.sql.connect.SparkConnectPlugin
# PySpark shell
./bin/pyspark \
--jars `ls connector/connect/target/**/spark-connect*SNAPSHOT.jar | paste -sd ',' -` \
--conf spark.plugins=org.apache.spark.sql.connect.SparkConnectPluginTo use the release version of Spark Connect:
./bin/spark-shell \
--packages org.apache.spark:spark-connect_2.12:3.4.0 \
--conf spark.plugins=org.apache.spark.sql.connect.SparkConnectPlugin./python/run-tests --testnames 'pyspark.sql.tests.connect.test_connect_basic'- Install
buf version 1.8.0: https://docs.buf.build/installation - Run
pip install grpcio==1.48.1 protobuf==4.21.6 mypy-protobuf==3.3.0 - Run
./connector/connect/dev/generate_protos.sh - Optional Check
./dev/check-codegen-python.py