hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Yu <yuzhih...@gmail.com>
Subject Re: Is it possible to get the table name at the Map phase?
Date Fri, 21 Nov 2014 15:24:21 GMT
This question has been asked a few times.

Take a look at Nick's comment in HBASE-4587

Cheers

On Fri, Nov 21, 2014 at 4:54 AM, yonghu <yongyong313@gmail.com> wrote:

> Hello all,
>
> I want to implement difference operator by using MapReduce. I read two
> tables by using MultiTableInputFormat. In the Map phase, I need to tag the
> name of table into each row, but how can I get the table name?
>
> One way I can think is to create HTable instance for each table in the
> setup() function. And in the map function, call get method to check if the
> input row is belonged to table_1 or table_2. However, this approach is
> slow.
>
> Can someone share some different ideas?
>
> regards!
>
> Yong
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message