>From what I know and what I have played with, jsonFile reads JsonRecords
which are defined as one record per line. Its not always the case that you
can supply the data that way. If you have custom data json data where you
cannot define a record per line, you will have to write your own
customReceiver to receive the data and then parse it. I hope it makes sense.
I wrote my own handler to read directory and that directory contained json
files, I read until I have hit the EOF and then later call the store method
which then sends the data to your driver. 



--
View this message in context: 
http://apache-spark-user-list.1001560.n3.nabble.com/How-does-jsonFile-work-tp26802p26844.html
Sent from the Apache Spark User List mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@spark.apache.org
For additional commands, e-mail: user-h...@spark.apache.org

Reply via email to