pyspark.sql.SparkSession.builder.enableHiveSupport

builder.enableHiveSupport() → pyspark.sql.session.SparkSession.Builder

Enables Hive support, including connectivity to a persistent Hive metastore, support for Hive SerDes, and Hive user-defined functions.