【发布时间】:2019-07-31 01:33:45
【问题描述】:
我有以下设置: - HDFS - 蜂巢 - 远程 Hive Metastore(和一个 Metastore 数据库) - Apache Spark(从https://archive.apache.org/dist/spark/spark-2.4.3/下载并安装)
我可以按预期使用 Hive,创建表 - 从 HDFS 读取数据等等。但是,无法通过 Hive 支持运行 spark。每当我运行val sparkSession = SparkSession.builder().appName("MyApp").enableHiveSupport().getOrCreate()
我收到java.lang.IllegalArgumentException: Unable to instantiate SparkSession with Hive support because Hive classes are not found.
Hive 类在路径中,我已经复制了 hive-site.xml、core-site.xml 和 hdfs-site.xml
我是否需要使用 hive 支持构建 spark(如此处所述:https://spark.apache.org/docs/latest/building-spark.html#building-with-hive-and-jdbc-support)才能使 spark 与 hive 一起使用?
是否有可用的带有 Hive 支持 tar 的 Spark,我可以提取它而不是从源代码构建?
谢谢!
【问题讨论】:
标签: apache-spark hive hive-metastore