The problem I'm facing right now is with the configuration needed for
MultipleOutputs, because JobConf is deprecated now and I am unable to do its
equivalent with Configuration. I set the configuration of the job by:

 Job job = new Job(getConf());

but when I'm trying to use this line in my config:

 MultipleOutputs.addNamedOutput(conf, "text", TextOutputFormat.class,
 LongWritable.class, Text.class);

I get an issue about no suitable method being found.

Roger

On Tue, Jul 26, 2011 at 12:00 PM, Harsh J <[email protected]> wrote:

> Roger,
>
> Beyond Ayon's example answer, I'd like you to note that the newer API
> will *not* carry a supported MultipleOutputFormat as it has been
> obsoleted away in favor of MultipleOutputs, whose use is much easier,
> is threadsafe, and also carries an example to look at, at [1].
>
> [1] -
> http://hadoop.apache.org/common/docs/r0.20.2/api/org/apache/hadoop/mapred/lib/MultipleOutputs.html
>
> On Tue, Jul 26, 2011 at 9:41 PM, Roger Chen <[email protected]> wrote:
> > Hi all,
> >
> > I am attempting to implement MultipleOutputFormat to write data to
> multiple
> > files dependent on the output keys and values. Can somebody provide a
> > working example with how to implement this in Hadoop 0.20.2?
> >
> > Thanks!
> >
> > --
> > Roger Chen
> > UC Davis Genome Center
> >
>
>
>
> --
> Harsh J
>



-- 
Roger Chen
UC Davis Genome Center

Reply via email to