赞
踩
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.
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。