当前位置:   article > 正文

Unable to instantiate SparkSession with Hive support because Hive classes are not found

unable to instantiate sparksession with hive support because hive classes ar

文章目录

1.美图

在这里插入图片描述

2.背景

Exception in thread "main" java.lang.IllegalArgumentException: Unable to instantiate SparkSession with Hive support because Hive classes are not found.
	at org.apache.spark.sql.SparkSession$Builder.enableHiveSupport(SparkSession.scala:845)
	at com.lcc.spark.structed.streaming.KafkaDemo1.main(KafkaDemo1.java:33)
  • 1
  • 2
  • 3

这个原因是采用的版本不对,要操作的hive为 2.1.0而引入的包是

<!-- https://mvnrepository.com/artifact/org.apache.spark/spark-hive -->
<dependency>
    <gr
  • 1
  • 2
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/从前慢现在也慢/article/detail/869711
推荐阅读
相关标签
  

闽ICP备14008679号