해제

지정된 키에 대한 구성 속성을 다시 설정합니다.

문법

unset(key: str)

매개 변수

매개 변수 유형 설명
key str 설정 취소할 구성의 키입니다.

예제

spark.conf.set("my_key", "my_value")
spark.conf.get("my_key")
# 'my_value'
spark.conf.unset("my_key")
spark.conf.get("my_key")
# Traceback (most recent call last):
#    ...
# pyspark...SparkNoSuchElementException: ... The SQL config "my_key" cannot be found...