hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jamal sasha <jamalsha...@gmail.com>
Subject Re: Multiple context.write inmapper
Date Fri, 11 Oct 2013 20:03:15 GMT
never mind.. found a bug :D


On Fri, Oct 11, 2013 at 12:54 PM, jamal sasha <jamalshasha@gmail.com> wrote:

> Hi..
>
>  In my mapper function..
> Can i have multiple context.write()...
>
> So...
>
> public void map(LongWritable key, Text value, Context context) throws
> IOException, InterruptedException ,NullPointerException{
>
> .. //processing/...
>
>  context.write(k1,v1);
> context.write(k2,v2);
> }
>
> I thought we could do this but based on my initial run.. I see the output
> of k2,v2??
>

Mime
View raw message