hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anthony Urso" <anthony.u...@gmail.com>
Subject Re: Writer class for writing tab separated Text key, value pairs
Date Tue, 30 Sep 2008 00:36:49 GMT
If you are doing this in mapreduce, just set the output format to
TextOutputFormat and collect Texts in your reducer.

Otherwise, just open a file on the HDFS and println(key + "\t" +
value) for each tuple.

On Sun, Sep 28, 2008 at 9:50 PM, Palleti, Pallavi
<pallavi.palleti@corp.aol.com> wrote:
> Hi,
>
>  Can anyone please tell me which class I should use for writing a data
> in plain text output format. I can use KeyValueLineRecordReader for
> reading a line. But there is no KeyValueLineRecordWriter.
>
> The only possibility that I found is to call getRecordWriter() of
> TextOutputFormat. But, the problem here is, I need to implement
> Progressable interface inorder to use this. Is there a simple way to do
> this?
>
>
>
> Thanks
>
> Pallavi
>
>

Mime
View raw message