hadoop-mapreduce-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Robertson <timrobertson...@gmail.com>
Subject Re: replace separator in output.collect?
Date Tue, 11 Jun 2013 15:06:33 GMT
Assuming you are using a textfileoutputformat:


http://stackoverflow.com/questions/11031785/hadoop-key-and-value-are-tab-separated-in-the-output-file-how-to-do-it-semicol

So something like:
  conf.set("mapred.textoutputformat.separator", ":");
  conf.set("mapreduce.textoutputformat.separator", ":");

Depending on the version being run.

I hope this helps,
Tim


On Tue, Jun 11, 2013 at 4:48 PM, Pedro Sá da Costa <psdc1978@gmail.com>wrote:

> the "output.collect(key, value)" puts the key and the value separated by
> \t. Is there a way to replace it by ':'?
>
> --
> Best regards,
>

Mime
View raw message