You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by "Hiller, Dean (Contractor)" <de...@broadridge.com> on 2011/01/27 16:48:58 UTC
how to write to multiple hbase tables in my Mapper class?
I have a map/reduce job I coded up to play with this and there is this
line that sets the table
TableMapReduceUtil.initTableReducerJob(tableName, null, job); //seems to
apply to all puts that occur
Then the Put objects take a column family but no table so it seems like
I can only operate on the table I am currently using? How to do get/put
from other tables?
I am trying to stuff activity in a map/reduce but the map phase needs to
look up the account and create it not exist and a bunch of other
get/puts from other tables as millions of activity come into my system
in a batch job.
Thanks,
Dean
This message and any attachments are intended only for the use of the addressee and
may contain information that is privileged and confidential. If the reader of the
message is not the intended recipient or an authorized representative of the
intended recipient, you are hereby notified that any dissemination of this
communication is strictly prohibited. If you have received this communication in
error, please notify us immediately by e-mail and delete the message and any
attachments from your system.
Re: how to write to multiple hbase tables in my Mapper class?
Posted by Jean-Daniel Cryans <jd...@apache.org>.
Use the normal Java API in your job to do that e.g. HTable.
J-D
On Thu, Jan 27, 2011 at 7:48 AM, Hiller, Dean (Contractor)
<de...@broadridge.com> wrote:
> I have a map/reduce job I coded up to play with this and there is this
> line that sets the table
>
>
>
> TableMapReduceUtil.initTableReducerJob(tableName, null, job); //seems to
> apply to all puts that occur
>
>
>
> Then the Put objects take a column family but no table so it seems like
> I can only operate on the table I am currently using? How to do get/put
> from other tables?
>
>
>
> I am trying to stuff activity in a map/reduce but the map phase needs to
> look up the account and create it not exist and a bunch of other
> get/puts from other tables as millions of activity come into my system
> in a batch job.
>
>
>
> Thanks,
>
> Dean
>
>
>
>
>
>
>
>
> This message and any attachments are intended only for the use of the addressee and
> may contain information that is privileged and confidential. If the reader of the
> message is not the intended recipient or an authorized representative of the
> intended recipient, you are hereby notified that any dissemination of this
> communication is strictly prohibited. If you have received this communication in
> error, please notify us immediately by e-mail and delete the message and any
> attachments from your system.
>
>