异常信息:
ERROR: error in [test_load]: Hive support is required to CREATE Hive TABLE (AS SELECT);;
'CreateTable `part_t1`, org.apache.hadoop.hive.ql.io.parquet.serde.ParquetHiveSerDe, Ignore
问题分析:在spark中,必须启用hive支持(即.enableHiveSupport())
解决:在 sparksession 中启用 hive 支持(添加倒数第二排代码)
spark = SparkSession.builder \
.appName("PySpark_test") \
.master("local") \
.enableHiveSupport()\
.getOrCreate()