spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yin Huai <>
Subject Re: save as JSON objects
Date Tue, 04 Nov 2014 21:32:21 GMT
Hello Andrejs,

For now, you need to use a JSON lib to serialize records of your datasets
as JSON strings. In future, we will add a method to SchemaRDD to let you
write a SchemaRDD in JSON format (I have created to track it).



On Tue, Nov 4, 2014 at 3:48 AM, Andrejs Abele <> wrote:

> Hi,
> Can some one pleas sugest me, what is the best way to output spark data as
> JSON file. (File where each line is a JSON object)
> Cheers,
> Andrejs

View raw message