当前位置:   article > 正文

Spark操作hive遇到的问题_exception in thread "main" java.lang.illegalargume

exception in thread "main" java.lang.illegalargumentexception: unable to ins

Spark操作hive报错如下

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:778)
    at scala.hiveDB.getRecords(hiveDB.scala:20)
    at scala.TransData$.main(TransData.scala:12)
    at scala.TransData.main(TransData.scala)


跟踪SparkSession.scala源码发现如下代码:

/**
 * Return true if Hive classes can be loaded, otherwise false.
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/天景科技苑/article/detail/869758
推荐阅读
相关标签
  

闽ICP备14008679号