Member since
10-24-2017
2
Posts
0
Kudos Received
0
Solutions
10-25-2017
04:40 PM
Thanks for the reply. Does this mean that spark object in
spark-shell already has enableHiveSupport() enabled? or the spark.sql(),
and spark.catalog that spark object provides are implemented by
SparkSession even without enableHiveSupport()?
... View more
10-24-2017
09:31 PM
I can use SparkSession to get the list of tables in Hive, or access a
Hive table as shown in the code below. Now my question is if in this
case, I'm using Spark with Hive Context? Or is it that to use hive context in Spark, I must directly use
HiveContext object to access tables, and perform other Hive related
functions? spark.catalog.listTables.show
val personnelTable = spark.catalog.getTable("personnel")
... View more
Labels:
- Labels:
-
Apache Hive
-
Apache Spark