Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Plain View
Hive >> mail # user >> Hive JDBC driver query statement timeout.

Kugathasan Abimaran 2013-02-06, 03:37
Copy link to this message
RE: Hive JDBC driver query statement timeout.
Normally that would be stmt.setQueryTimout however that call isn't implemented yet. So to answer, no there isn't.

  public void setQueryTimeout(int seconds) throws SQLException {
    throw new SQLException("Method not supported");

You might find a parameter called "hive.stats.jdbc.timeout" but don't be fooled, that only for the "stats" package not for the client side jdbc driver.
Strangely enough I just realized I never actually missed it. Normally when there are problems with a query either Hive or hadoop throws an exception and that will end up on the client. But I can understand how others could have more time sensitive queries/results and would like to see this option.

From: Kugathasan Abimaran [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 06, 2013 4:37 AM
Subject: Hive JDBC driver query statement timeout.


Is there a way to set the hive statement query timeout in hive jdbc driver?

With Regards,