I'm trying to load Map-R DB json in spark and createOrReplaceTempView on top of it.
Is it possible ?
val json = sc.loadFromMapRDB("/usr/hdfs/docdb/data/emp_snapshot")
The above statement is returning - val json: MapRDBTableScanRDD[OJAIDocument]
But , I think i need to derive a DataFrame to create temp view.
How can i achieve this. Please help.