pyspark.sql.SparkSession.builder.remote¶
-
builder.
remote
(url: str) → pyspark.sql.session.SparkSession.Builder¶ Sets the Spark remote URL to connect to, such as “sc://host:port” to run it via Spark Connect server.
New in version 3.4.0.
- Parameters
- urlstr
URL to Spark Connect server
- Returns
SparkSession.Builder
Examples
>>> SparkSession.builder.remote("sc://localhost") <pyspark.sql.session.SparkSession.Builder...