I am using https://github.com/databricks/spark-csv , I am trying to write a single CSV, but not able to, it is making a folder.
Need a Scala function which will take
you can use rdd.coalesce(1, true).saveAsTextFile(path)
rdd.coalesce(1, true).saveAsTextFile(path)
it will store data as singile file in path/part-00000