have you tried to specify format of your output, might be parquet is default format? df.write().format("json").mode(SaveMode.Overwrite).save("/tmp/path");
On 27 December 2015 at 15:18, Նարեկ Գալստեան <ngalsty...@gmail.com> wrote: > Hey all! > I am willing to partition *json *data by a column name and store the > result as a collection of json files to be loaded to another database. > > I could use spark's built in *partitonBy *function but it only outputs in > parquet format which is not desirable for me. > > Could you suggest me a way to deal with this problem? > Narek Galstyan > > Նարեկ Գալստյան >