Re: How to read a Multi Line json object via Spark

2016-11-15 Thread Hyukjin Kwon
Hi Sree, There is a blog about that, http://searchdatascience.com/spark-adventures-1-processing-multi-line-json-files/ It is pretty old but I am sure that it is helpful. Currently, JSON datasource only supports to rest JSON documents formatted according to http://jsonlines.org/ There is an

RE: How to read a Multi Line json object via Spark

2016-11-14 Thread Kappaganthu, Sivaram (ES)
Hello, Please find attached the old mail on this subject Thanks, Sivaram From: Sree Eedupuganti [mailto:s...@inndata.in] Sent: Tuesday, November 15, 2016 12:51 PM To: user Subject: How to read a Multi Line json object via Spark I tried from Spark-Shell and i am getting the following error

How to read a Multi Line json object via Spark

2016-11-14 Thread Sree Eedupuganti
I tried from Spark-Shell and i am getting the following error: Here is the test.json file: { "colorsArray": [{ "red": "#f00", "green": "#0f0", "blue": "#00f", "cyan": "#0ff", "magenta": "#f0f", "yellow": "#ff0", "black": "#000" }]}