phoenix-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Bedley <aeoli...@gmail.com>
Subject Phoenix Connection Timeout
Date Fri, 22 May 2015 20:58:55 GMT
Hello,

I'm wondering if there is a way to timeout a PhoenixDriver connection
attempt.

For example if I run:

// invalidZkQuorum = some unreachable ip address
Connection conn = DriverManager.getConnection("jdbc:phoenix:" +
invalidZkQuorum);

It just hangs forever. Is there something I can put in the Properties
object to force the connection to time out? I have tried setting
DriverManager.setLoginTimeout(timeout).

Thank you for your time,

- Alex

Mime
View raw message