By default the output separator is a single space, to set the output separated by our desired character set this configuration
where conf is a org.apache.hadoop.conf.Configuration object
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