hive does not support timeout on the client side.

and I think it is not recommended that if the client exit with timeout
exception, the hiveserver side may also running the job. this will result
in inconsistent state.

On Tue, Feb 2, 2016 at 4:49 PM, Satya Harish Appana <
[email protected]> wrote:

> Hi Team,
>
>   I am trying to connect to hiveServer via hive-jdbc.
> Can we configure client side timeout at each query executed inside each
> jdbc connection. (When I looked at HiveStatement.setQueryTimeout method it
> says operation unsupported).
> Is there any other way of timing out and cancelling the connection and
> throwing Exception, if it alive for over a period of 4 mins or so
> (configurable at client side).
>
> PS : Queries that I am executing over jdbc are simple ddl statements.
> (hive external table create statements and drop table statements).
>
>
> Regards,
> Satya Harish.
>

Reply via email to