3
votes

How to connect to HCatalog to get the data's stored in Hive [Hive metastore] using Spark / Spark SQL / Java

Do we need to use HiveContext() for this? how do i configure Hcatalog?

1

1 Answers

0
votes

You can copy your existing hive-site.xml into Spark's configuration and then create a HiveContext. See http://spark.apache.org/docs/latest/sql-programming-guide.html#hive-tables .