squirrel客户端连接到phoenix-超时异常

mpgws1up  于 2021-06-09  发布在  Hbase
关注(0)|答案(1)|浏览(823)

我正在尝试通过squirrel客户端连接到phoenix。我在松鼠日志中收到以下日志。日志表明已建立到zooperkeeper的clientconnection,但是在建立带有超时异常的sqlclient连接时失败。
我已经将phoenix客户端jar复制到squirrel的lib目录中,驱动程序注册成功。另外,当我在localhost中运行sqlline.py实用程序时,它会成功地将sql命令行加载到phoenix,并且我可以运行这些命令。还将phoenix core jars添加到$hbase\u home/lib文件夹中。

2015-06-15 12:48:53,766 [pool-7-thread-1] INFO  org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper  - Process identifier=hconnection-0x776a1002 connecting to 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 to server 10.58.126.245/10.58.126.245:2181. Will not attempt to 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 to 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 to open an SQL connection.
java.util.concurrent.TimeoutException
    at java.util.concurrent.FutureTask.get(FutureTask.java:201)
    at net.sourceforge.squirrel_sql.client.mainframe.action.OpenConnectionCommand.awaitConnection(OpenConnectionCommand.java:132)
    at net.sourceforge.squirrel_sql.client.mainframe.action.OpenConnectionCommand.access$100(OpenConnectionCommand.java:45)
    at net.sourceforge.squirrel_sql.client.mainframe.action.OpenConnectionCommand$2.run(OpenConnectionCommand.java:115)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:744)
20jt8wwn

20jt8wwn1#

我有同样的问题,还没有找到解决方案,但我设法使用“瘦”客户端代替。
启动queryserverhttps://phoenix.apache.org/server.html 应该监听端口8765
将jar-phoenix-4.6.0-hbase-1.1-thin-client复制到squirel lib文件夹
创建新驱动程序,类名为“org.apache.phoenix.queryserver.client.driver”
连接此驱动程序(我的uri:jdbc:phoenix:thin:url=http://docker:8765)

相关问题