Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
MapReduce >> mail # user >> Writting to HBASE in map phase

Copy link to this message
RE: Writting to HBASE in map phase
Thank you very much!


-----Original Message-----
From: Harsh J [mailto:[EMAIL PROTECTED]]
Sent: terça-feira, 10 de julho de 2012 17:28
Subject: Re: Writting to HBASE in map phase

Hi Pablo,

Just set your number of reduces to zero, and your TableOutputFormat will automatically kick in at the Map stage, i.e., just add the below to your driver before you submit the job. You need no other changes.


On Wed, Jul 11, 2012 at 1:53 AM, Pablo Musa <[EMAIL PROTECTED]> wrote:
> Hey guys,
> I need to update a field in an HBASE table and I want to do a mapred
> job for that.
> I can do it using both map and red phase. However, it does not make
> any sense
> to me, since map will pass the "Result" it is receiving to the reduce phase.
> I also read in the hbase mailing list someone saying that you do not
> need the reduce,
> which I agree. However I do not know, and did not find any hints on
> configuring
> the map phase to write into HBASE.
> I could use the HBASE API and write into the table, but I am not sure
> it is a good idea.
> Thanks,
> Pablo

Harsh J