Skip to content

SparkConnectServer — Spark Connect Server Standalone Application

SparkConnectServer is a standalone application to start a Spark Connect server from command line.

SparkConnectServer can be started using sbin/start-connect-server.sh shell script.

SparkConnectServer can be stopped using sbin/stop-connect-server.sh shell script.

Launching Application

main(
  args: Array[String]): Unit

main prints out the following INFO message to the logs:

Starting Spark session.

main creates a SparkSession with the following config options:

Config Value
spark.sql.artifact.isolation.enabled true
spark.sql.artifact.isolation.alwaysApplyClassloader true

main starts a SparkConnectService.

main prints out the following INFO message to the logs:

Spark Connect server started at: [host]:[port]

In the end, main is paused until the SparkConnectService is terminated.