You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hive.apache.org by 葱子 <fx...@gmail.com> on 2014/07/07 06:42:44 UTC

GetTables is very slow when the table number is large

Hi All

    Recently I try to use Olap4j driver to connect a Hive warehouse. The
Olap4j will try to get all tables when establish the connection( there are
2000-3000 tables in this DW) it will get the connect hang and never return.

    I am wonder if there max limited size of tables for a GetTables API, if
not, how to fast up the API?  Thanks in advance.

-Lucas

Re: GetTables is very slow when the table number is large

Posted by Ashu Pachauri <as...@rocketfuelinc.com>.
There is a max limit size for the number of tables (maxRows) but it does
not help because the call internally fetches all the table objects and then
truncates the result set based on the maxRows argument. So, it is dependent
only on the total number of tables your database has.

I have also been experiencing this issue. It is very very slow, basically
it is unusable.


On Sun, Jul 6, 2014 at 9:42 PM, 葱子 <fx...@gmail.com> wrote:

> Hi All
>
>     Recently I try to use Olap4j driver to connect a Hive warehouse. The
> Olap4j will try to get all tables when establish the connection( there are
> 2000-3000 tables in this DW) it will get the connect hang and never return.
>
>     I am wonder if there max limited size of tables for a GetTables API,
> if not, how to fast up the API?  Thanks in advance.
>
> -Lucas
>



-- 
Thanks and Regards,
Ashu Pachauri
Rocket Scientist,
Rocket Fuel Inc.
1- 650 - 200- 5390