jdbc - Squirrel Client Connecting to Phoenix - Timeout Exception -


i trying connect phoenix via squirrel client. receiving following logs in squirrel logs. logs suggests clientconnection zooperkeeper established fails when sqlclient connection being established timeout exception.

i have copied phoenix client jar lib directory of squirrel , driver registered succesfully. when run sqlline.py utility in localhost loads sql commandline phoenix succesfully , can run commands. added phoenix core jars $hbase_home/lib folders well.

2015-06-15 12:48:53,766 [pool-7-thread-1] info  org.apache.hadoop.hbase.zookeeper.recoverablezookeeper  - process identifier=hconnection-0x776a1002 connecting zookeeper ensemble=10.58.126.245:2181 2015-06-15 12:48:53,766 [pool-7-thread-1] info  org.apache.zookeeper.zookeeper  - initiating client connection, connectstring=10.58.126.245:2181 sessiontimeout=90000 watcher=hconnection-0x776a10020x0, quorum=10.58.126.245:2181, baseznode=/hbase 2015-06-15 12:48:58,287 [pool-7-thread-1-sendthread(10.58.126.245:2181)] info  org.apache.zookeeper.clientcnxn  - opening socket connection server 10.58.126.245/10.58.126.245:2181. not attempt authenticate using sasl (unknown error) 2015-06-15 12:48:58,301 [pool-7-thread-1-sendthread(10.58.126.245:2181)] info  org.apache.zookeeper.clientcnxn  - socket connection established 10.58.126.245/10.58.126.245:2181, initiating session 2015-06-15 12:48:58,314 [pool-7-thread-1-sendthread(10.58.126.245:2181)] info  org.apache.zookeeper.clientcnxn  - session establishment complete on server 10.58.126.245/10.58.126.245:2181, sessionid = 0x14df5b87b120040, negotiated timeout = 90000 2015-06-15 12:49:58,100 [pool-7-thread-1] info  org.apache.hadoop.hbase.client.rpcretryingcaller  - call exception, tries=10, retries=35, started=59774 ms ago, cancelled=false, msg= 2015-06-15 12:50:20,456 [pool-7-thread-1] info  org.apache.hadoop.hbase.client.rpcretryingcaller  - call exception, tries=11, retries=35, started=82130 ms ago, cancelled=false, msg= 2015-06-15 12:50:36,114 [awt-eventqueue-1] error net.sourceforge.squirrel_sql.client.gui.db.connecttoaliascallback  - unexpected error occurred attempting open sql connection. java.util.concurrent.timeoutexception     @ java.util.concurrent.futuretask.get(futuretask.java:201)     @ net.sourceforge.squirrel_sql.client.mainframe.action.openconnectioncommand.awaitconnection(openconnectioncommand.java:132)     @ net.sourceforge.squirrel_sql.client.mainframe.action.openconnectioncommand.access$100(openconnectioncommand.java:45)     @ net.sourceforge.squirrel_sql.client.mainframe.action.openconnectioncommand$2.run(openconnectioncommand.java:115)     @ java.util.concurrent.executors$runnableadapter.call(executors.java:471)     @ java.util.concurrent.futuretask.run(futuretask.java:262)     @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1145)     @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:615)     @ java.lang.thread.run(thread.java:744) 

i have same problem, don't find solution yet, managed use "thin" client instead.

  1. start queryserver https://phoenix.apache.org/server.html should listen on port 8765

  2. copy jar phoenix-4.6.0-hbase-1.1-thin-client squirel lib folder

  3. create new driver, class name "org.apache.phoenix.queryserver.client.driver"

  4. connect driver (my uri: jdbc:phoenix:thin:url=http://docker:8765)


Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

php - Find a regex to take part of Email -