Skip to main content

set

Sets the given Spark runtime configuration property.

Syntax

set(key: str, value: str | int | bool)

Parameters

Parameter

Type

Description

key

str

Key of the configuration to set.

value

str, int, or bool

Value of the configuration to set.

Examples

Python
spark.conf.set("key1", "value1")