You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hive.apache.org by Nagabhushanam Bheemisetty <nb...@gmail.com> on 2016/09/14 17:19:13 UTC

Hive or Pig - Which one gives best performance for reading HBase data

Hi,

I have a situation where I need to read data from huge HBase table and dump
it into other location as a flat file. I am not interested in all the
columns rather I need only lets 10 out of 100+ columns. So which technology
Hive/Pig gives better performance. I believe both of them will use serde'
to extract and build record.

Any thoughts?

Thanks

Re: Hive or Pig - Which one gives best performance for reading HBase data

Posted by Nagabhushanam Bheemisetty <nb...@gmail.com>.
Thanks Franke. Will try that

On Wed, Sep 14, 2016 at 2:05 PM Jörn Franke <jo...@gmail.com> wrote:

> They should be rather similar, you may gain some performance using Tez or
> Spark as an execution engine but in an export scenario do not expect much
> performance improvements.
> In any scenario avoid to have only one reducer, but use several ones, e.g.
> by exporting to multiple output files instead of one. This avoids network
> load.
> It might be worth to check Apache Pherf to export selected columns from
> Hbase.
>
> On 14 Sep 2016, at 19:19, Nagabhushanam Bheemisetty <
> nbheemisetty@gmail.com> wrote:
>
> Hi,
>
> I have a situation where I need to read data from huge HBase table and
> dump it into other location as a flat file. I am not interested in all the
> columns rather I need only lets 10 out of 100+ columns. So which technology
> Hive/Pig gives better performance. I believe both of them will use serde'
> to extract and build record.
>
> Any thoughts?
>
> Thanks
>
>

Re: Hive or Pig - Which one gives best performance for reading HBase data

Posted by Jörn Franke <jo...@gmail.com>.
They should be rather similar, you may gain some performance using Tez or Spark as an execution engine but in an export scenario do not expect much performance improvements.
In any scenario avoid to have only one reducer, but use several ones, e.g. by exporting to multiple output files instead of one. This avoids network load.
It might be worth to check Apache Pherf to export selected columns from Hbase.

> On 14 Sep 2016, at 19:19, Nagabhushanam Bheemisetty <nb...@gmail.com> wrote:
> 
> Hi,
> 
> I have a situation where I need to read data from huge HBase table and dump it into other location as a flat file. I am not interested in all the columns rather I need only lets 10 out of 100+ columns. So which technology Hive/Pig gives better performance. I believe both of them will use serde' to extract and build record.
> 
> Any thoughts?
> 
> Thanks