hive-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Kuhn <martin.k...@affinitas.de>
Subject Re: need help in Mapreduce(urgent)
Date Mon, 09 Jan 2012 13:09:26 GMT
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

Mime
View raw message