I created a spark session like that:
from pyspark.sql import SparkSession
spark = SparkSession
.builder
.enableHiveSupport()
.getOrCreate()
(https://i.sstatic.net/H39zvFpO.png).
butit can’t connect with hive table. i check sparkSession default in spark shell which can normal connect to hive. How can i config a sparksession to connect with hive like that?
Please help me and explain why my spark Session doesn’t work.
New contributor
user26565178 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.