AnsweredAssumed Answered

How can i createOrReplaceTempView on MapR-DB JSON - Spark , Scala

Question asked by sn55179 on Jun 12, 2018
Latest reply on Jun 17, 2018 by sn55179

Hi ,


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.


Thank you,


mapr-db jsonmapr-dbmapr db