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 |
|---|---|---|
| str | The URL to the Spark Connect server. |
Returns
SparkSession.Builder
Examples
Python
SparkSession.builder.remote("sc://localhost")