Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
MapReduce >> mail # user >> Re: Multiple context.write inmapper


Copy link to this message
-
Re: Multiple context.write inmapper
never mind.. found a bug :D
On Fri, Oct 11, 2013 at 12:54 PM, jamal sasha <[EMAIL PROTECTED]> 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??
>
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB