0

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

Phantômaxx
  • 37,901
  • 21
  • 84
  • 115
brucewayne
  • 53
  • 2
  • 7

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
  • 179,855
  • 19
  • 132
  • 245