Question regarding accessing Hive Metastore


I have a doubt about the below statement.

Use metastore tables as an input source or an output sink for Spark applications

Does this mean using the sqlContext to query Hive table (either by Data-frames or RDD) and perform operations and saving back to HIVE ?

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

Please let me know if my understanding is correct or not.

Yes, your understanding is correct.