drill-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hao Zhu <h...@maprtech.com>
Subject How to specify Drill JDBC connection timeout or JDBC Query timeout
Date Fri, 03 Jun 2016 01:33:10 GMT
Hi Team,

I am trying to create a java code to test the health of each drillbit.
The goal is to use JDBC connection logon each drillbit and run a simple
query.

However I could not find the way to set either connection timeout or query
timeout.
I checked below api pages:

https://drill.apache.org/api/1.2/jdbc/org/apache/drill/jdbc/DrillConnection.html

*setNetworkTimeout*
<https://drill.apache.org/api/1.2/jdbc/org/apache/drill/jdbc/DrillConnection.html#setNetworkTimeout(java.util.concurrent.Executor,%20int)>
(*Executor*
<http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/Executor.html?is-external=true>
executor,
int milliseconds)

*Drill*: Not supported (for non-zero timeout value).
 https://drill.apache.org/api/1.2/jdbc/org/apache/drill/jdbc/DrillStatement.html
<https://drill.apache.org/api/1.2/jdbc/org/apache/drill/jdbc/DrillStatement.html>

*setQueryTimeout*
<https://drill.apache.org/api/1.2/jdbc/org/apache/drill/jdbc/DrillStatement.html#setQueryTimeout(int)>
(int milliseconds)

*Drill*: Not supported (for non-zero timeout value).

Any suggestions?

Thanks,
Hao

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message