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 <[EMAIL PROTECTED]> 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 > >
