0
votes

I am trying to use HiveContext for getting the value from the table using Spark SQL.

But i am not sure how to configure hive metastore details and make it working.

DO we need to set somethikng on SparkContext()?

Regards, Shankar

1

1 Answers

0
votes

Directly from the documentation:

HiveContext sqlContext = new org.apache.spark.sql.hive.HiveContext(sc.sc);

Configuration of Hive is done by placing your hive-site.xml file in conf/.

And example hive-site.xml.