Hive-2 Source

Hive-2 Source () is used to read data from a Hive database.

To enable Hive access, place the following configuration files in the $SPARK_HOME/conf directory: If hive-site.xml is not configured, Spark will automatically:

Configuration Parameters

Important Notes

The user running the Spark Job must have write access to the Hive Warehouse Directory .
If using HiveWarehouseSession , it is only supported on:
    Spark 2.x
The following libraries must be included when running a Spark job:
    hive-warehouse-connector-assembly-1.0.0.3.1.0.0-78.jar
This library is used to enable communication between Spark and Hive LLAP .

If using SparkSession , add the following configuration when submitting job.
    --conf spark.sql.catalogImplementation=hive

Supported Engines

Map
Reduce
Spark 1.x
RDD
Spark 2.x
RDD
Spark 2.x
Dataset
Apache Beam
2.29.0 Batch
Apache Beam
2.29.0 Streaming
Apache Flink
1.12.0 Batch
Apache Flink
1.12.0 Streaming
Apache Tez
0.9.1
PySpark