Github user cse68197 commented on the issue:
https://github.com/apache/spark/pull/18304
I am writing data to a file like below-
allDF.rdd.map(rec =>
rec.mkString("|")).repartition(1).saveAsTextFile("location for file")
but when I opening that file in notepad, that is opening in single line
but the same file is opening fine in notepad++ and I can see all the data in
new lines.
I tried with below options (one by one) before saving as well but those
also not worked.
spark.conf.set("textinputformat.record.delimeter","\r\n")
spark.conf.set("textinputformat.record.delimeter","\n")
So could you please help me to understand the any alternative way to fix it?
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]