What version/release/distro of Hadoop are you using? Apache releases
got the new (unstable) API MultipleOutputs only in 0.21+, and was only
very recently backported to branch-1.

That said, the next release in 1.x (1.1.0, out soon) will carry the
new API MultipleOutputs, but presently no release in 0.20.xxx/1.x has
it.

I'd still recommend sticking to stable API if you are using a
0.20.x/1.x stable Apache release.

On Wed, Jan 25, 2012 at 5:13 PM, Ondřej Klimpera <[email protected]> wrote:
> Hello,
>
> I'm trying to develop an application, where Reducer has to produce multiple
> outputs.
>
> In detail I need the Reducer to produce two types of files. Each file will
> have different output.
>
> I found in Hadoop, The Definitive Guide, that new API uses only
> MultipleOutputs, but working with MultipleOutputs requires JobConf instace,
> that is @deprecated (I'm using org.apache.hadoop.mapreduce.Job instance to
> handle job configuration).
>
> So I'm wondering how to get MultipleOutputs working.
>
> Can you please provide me some short example or explanation.
>
> Thanks for your reply.
>
> Regards
>
> Ondrej Klimpera



-- 
Harsh J
Customer Ops. Engineer, Cloudera

Reply via email to