appName (SparkSession.Builder)

Sets a name for the application, which is shown in the Spark web UI. If no application name is set, a randomly generated name is used.

Syntax

appName(name)

Parameters

Parameter Type Description
name str An application name.

Returns

SparkSession.Builder

Examples

SparkSession.builder.appName("My app")