Spark Session¶
The entry point to programming Spark with the Dataset and DataFrame API.
To create a Spark session, you should use SparkSession.builder
attribute.
See also SparkSession
.
Returns the active or default |
|
Sets a name for the application, which will be shown in the Spark web UI. |
|
|
Sets a config option. |
Enables Hive support, including connectivity to a persistent Hive metastore, support for Hive SerDes, and Hive user-defined functions. |
|
Gets an existing |
|
|
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. |
Sets the Spark remote URL to connect to, such as “sc://host:port” to run it via Spark Connect server. |
|
Interface through which the user may create, drop, alter or query underlying databases, tables, functions, etc. |
|
Runtime configuration interface for Spark. |
|
|
Creates a |
Returns the active |
|
Returns a new |
|
|
Create a |
Returns a |
|
Returns a |
|
Returns the underlying |
|
|
Returns a |
Stop the underlying |
|
Returns a |
|
|
Returns the specified table as a |
Returns a |
|
Returns a |
|
The version of Spark on which this application is running. |
Spark Connect Only¶
Creates a new SparkSession. |
|
|
Add artifact(s) to the client session. |
|
Add artifact(s) to the client session. |
|
Copy file from local to cloud storage file system. |
Gives access to the Spark Connect client. |
|
Interrupt all operations of this session currently running on the connected server. |
|
Interrupt all operations of this session with the given operation tag. |
|
Interrupt an operation of this session with the given operationId. |
|
|
Add a tag to be assigned to all the operations started by this thread in this session. |
Remove a tag previously added to be assigned to all the operations started by this thread in this session. |
|
Get the tags that are currently set to be assigned to all the operations started by this thread. |
|
Clear the current thread’s operation tags. |