Registry / database / spark-hive-2-12

spark-hive-2-12

JSON →
library3.5.8javamavenunverified

Apache Spark Hive support module enables integration with Apache Hive for reading and writing Hive tables and executing HiveQL queries.

<dependency> <groupId>org.apache.spark</groupId> <artifactId>spark-hive_2.12</artifactId> <version>3.5.8</version> </dependency>
INSTALL
IMPORT
SIG · SPARK-HIVE-2-12
S
spark-hive-2-12
databasejavav3.5.8
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

HiveContext
org.apache.spark.sql.hive.HiveContext

Execute Hive SQL queries using Spark.

import org.apache.spark.sql.hive.HiveContext; import org.apache.spark.SparkConf; import org.apache.spark.api.java.JavaSparkContext; SparkConf conf = new SparkConf().setAppName("HiveExample"); JavaSparkContext sc = new JavaSparkContext(conf); HiveContext hiveContext = new HiveContext(sc); hiveContext.sql("SELECT * FROM my_table").show();
Debug
Known issues
breakingHiveContext is deprecated in Spark 2.x; use SparkSession with Hive support enabled.
fix
Use SparkSession.builder().enableHiveSupport().getOrCreate() instead.
affects: >=2.0
Upgrade
Version history
3.5.8latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
15 hits · last 30 days
node
12
Meta
2
Resources
spark-hive-2-12 — mvn dependency:get spark-hive-2-12 · libregistry