Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 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?
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,
>
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB