Using JDBC read mode
In a few steps, you configure Apache Spark to connect to HiveServer (HS2). Examples show how to configure JDBC Cluster mode while launching the Spark shell.
- Accept the default
spark.datasource.hive.warehouse.load.staging.dir
for the temporary staging location required by HWC. - In spark-defaults.conf, check that
spark.hadoop.hive.zookeeper.quorum
is configured. - In spark-defaults.conf, set Kerberos configurations for HWC, or for an unsecured
cluster, set
spark.security.credentials.hiveserver2.enabled
=false
.