On Sat, Dec 13, 2014 at 5:43 PM, Helena Edelson <helena.edel...@datastax.com
> wrote:

> One solution can be found here:
> https://spark.apache.org/docs/1.1.0/sql-programming-guide.html#json-datasets
>
>
As far as I understand, the people.json file is not really a proper json
file, but a file documented as:

  "... JSON files where each line of the files is a JSON object.".

This means that is a file with multiple lines, but each line needs to have
a fully self-contained JSON object
(initially confusing, this will not parse a standard multi-line JSON file).
We are working to clarify this in
https://github.com/apache/spark/pull/3517

HTH,

Peter




> - Helena
> @helenaedelson
>
> On Dec 13, 2014, at 11:18 AM, Madabhattula Rajesh Kumar <
> mrajaf...@gmail.com> wrote:
>
> Hi Team,
>
> I have a large JSON file in Hadoop. Could you please let me know
>
> 1. How to read the JSON file
> 2. How to parse the JSON file
>
> Please share any example program based on Scala
>
> Regards,
> Rajesh
>
>
>


-- 
Peter Vandenabeele
http://www.allthingsdata.io
http://www.linkedin.com/in/petervandenabeele
https://twitter.com/peter_v
gsm: +32-478-27.40.69
e-mail: pe...@vandenabeele.com
skype: peter_v_be

Reply via email to