Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Sets the Spark master URL to connect to, such as "local" to run locally, "local[4]" to run locally with 4 cores, or "spark://master:7077" to run on a Spark standalone cluster.
Syntax
master(master)
Parameters
| Parameter | Type | Description |
|---|---|---|
master |
str | A URL for the Spark master. |
Returns
SparkSession.Builder
Examples
SparkSession.builder.master("local")