MultiTableInputFormat class

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

MultiTableInputFormat class

Rajeshkumar J
Hi,


   I came across MultiTableInputFormat class which convert HBase tabular
data from multiple scanners into a format that is consumable by Map/Reduce.
So what will be the input to the mapper class if I have passed a scan
object to this class which scans two tables. Whether the input to mapper
class is the whole data which the scan object returns ?? can any one explain

Thanks
Reply | Threaded
Open this post in threaded view
|

Re: MultiTableInputFormat class

Jerry He
You would pass multiple Scans to MultiTableInputFormat.  Each Scan object
is for each table.
The input to the mapper is the same as before: the scan result (row key and
values for the row).

Thanks,

Jerry

On Mon, May 22, 2017 at 3:33 AM, Rajeshkumar J <[hidden email]>
wrote:

> Hi,
>
>
>    I came across MultiTableInputFormat class which convert HBase tabular
> data from multiple scanners into a format that is consumable by Map/Reduce.
> So what will be the input to the mapper class if I have passed a scan
> object to this class which scans two tables. Whether the input to mapper
> class is the whole data which the scan object returns ?? can any one
> explain
>
> Thanks
>