Hi Alex, It's probably not hanging forever, but going through the -- very long by default -- HBase connection retry loop. Probably you can enabled more verbose logging and see exactly what's happening. Can you confirm this is the case and file a ticket against Phoenix at https://issues.apache.org/jira/browse/PHOENIX ? Depending on how your consuming Phoenix, the log4j.properties file is probably in the bin folder next to sqlline.py.
Thanks, Nick On Fri, May 22, 2015 at 1:58 PM, Alex Bedley <[email protected]> wrote: > 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 >
