0

How can I connect Spark from my local machine in Eclipse to a remote HiveServer?

Phantômaxx
  • 37,352
  • 21
  • 80
  • 110
brucewayne
  • 53
  • 2
  • 6

1 Answers1

0

Get a copy of the hive-site.xml from the remote server, and add it to $SPARK_HOME/conf

Then, assuming Spark2, you need to use SparkSession.enableHiveSupport() method, and any spark.sql() queries should be able to communicate with Hive.

Also see my answer here

OneCricketeer
  • 151,199
  • 17
  • 111
  • 216