Showing posts with label mapreduce configuration. Show all posts
Showing posts with label mapreduce configuration. Show all posts

Friday, 20 December 2013

Set separator for mapreduce output

By default the output separator is a single space, to set the output separated by our desired character set this configuration
conf.set("mapred.textoutputformat.separator", ",");
The map reduce(ie the key and values) output will be comma separated in this case.

where conf is a org.apache.hadoop.conf.Configuration  object