Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
MapReduce, mail # user - replace separator in output.collect?


Copy link to this message
-
Re: replace separator in output.collect?
Tim Robertson 2013-06-11, 15:06
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 <[EMAIL PROTECTED]>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,
>