Hi Vikas,

> 1:- How to format output from reduce( like default is tab separator can we 
> make it "," separator)

If you want this behaviour for all your Hadoop jobs, you have to put this into 
your mapred-site.xml:

    <property>
      <name>mapred.textoutputformat.separator</name>
      <value>,</value>
    </property>

    (see https://issues.apache.org/jira/browse/HADOOP-3295)


To change the separator programatically for certain jobs only:

    final Configuration conf = getConf();
    conf.set(TextOutputFormat.SEPERATOR, ",");


Good Luck :)
Martin

Reply via email to