How to convert a dataframe to RDD[String, String] ?
I have a data frame
df : [id : String, coutry :String, title: String]
How to do I convert it to RDD[String, String] where the first column would be key and the json string made of remaining columns would be value ?
key : id
value : {coutry: "US", title : "MK"}