spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From RP <>
Subject How to convert String data to RDD.
Date Sat, 03 Jan 2015 00:31:57 GMT
Hello Guys,
  Spark noob here. I am trying to create RDD from  JSON data  fetched 
from URL parsing.
My URL parsing function gives me JSON in string format.
How do I convert JSON string to JSONRDD so that I can use it in SparkSQL.

// get json data in string fromat
val jsonURLData = getUrlAsString("")

val jsonDataRDD = ?

val  json1  =  sqlContext.jsonRDD(jsonDataRDD)


View raw message