AnsweredAssumed Answered

Tried to save RDD into csv file -- format not as expected. How can I dump mapr-db table into csv?

Question asked by danielsobrado on May 24, 2016
Latest reply on Jun 6, 2016 by danielsobrado
Branched from an earlier discussion

Community Manager Note: This question was branched from a comment that was posted on this other question: Creating a Spark RDD from a MapR-DB table succeeds, but returns no rows


I followed this code and was able to get the correct count of rows, I tried to save the RDD into a csv file:




But the file saved contains the following format instead of the expected strings:


(5a 4d 57 5f 33 31 2f 30 38 2f 32 30 31 35,keyvalues={com.mapr.fs.hbase.RowColKeyValue@5911a1dc, com.mapr.fs.hbase.RowColKeyValue@1499a033, com.mapr.fs.hbase.RowColKeyValue@71e47ed5, com.mapr.fs.hbase.RowColKeyValue@50430c5d})


How can I dump my mapr-db table into a csv file?