remote (SparkSession.Builder)

Sets the Spark remote URL to connect to, such as "sc://host:port" to run via a Spark Connect server.

Syntax

remote(url)

Parameters

Parameter Type Description
url str The URL to the Spark Connect server.

Returns

SparkSession.Builder

Examples

SparkSession.builder.remote("sc://localhost")