I am using Spark 2.0.2. How can I specify the Hadoop configuration item textinputformat.record.delimiter
for the TextInputFormat
class when reading a CSV file into a Dataset?
In Java I can code: spark.read().csv(<path>);
However, there doesn't seem to be a way to provide a Hadoop configuration specific to the read.
It is possible to set the item using the spark.sparkContext().hadoopConfiguration()
but that is global.
Thanks,