Hadoop TextOutputFormat: add headers to CSV output
I'm maintaining a simple hadoop job that produces CSV files as output in
the HDFS. The job uses TextOutputFormat. I want to add the leading header
row to the csv files (I know part files are created by different workers,
that's not a problem if each of them gets the headers). How to achieve
this?
No comments:
Post a Comment