首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法使用python phoenixdb库连接到凤凰

问无法使用python phoenixdb库连接到凤凰
EN

Stack Overflow用户
提问于 2016-08-10 12:34:28
回答 1查看 912关注 0票数 0

我有菲尼克斯,它与HBase集成。我正在尝试使用pythondb库从python代码中访问凤凰城,并且我已经使用

代码语言:javascript
复制
bin/queryserver.py start

但是,在connect语句之后,我得到以下错误:

代码语言:javascript
复制
database_url = 'http://localhost:8765/'
conn = phoenixdb.connect(database_url, autocommit=True)

InternalError:(“找不到解析器”,“无,无,无”)

这是日志中的错误:

2016-08-10 14:24:07,987警告org.eclipse.jetty.server.HttpChannel: / java.lang.IllegalArgumentException:无法找到解析器在org.apache.calcite.avatica.remote.ProtobufTranslationImpl.parseRequest(ProtobufTranslationImpl.java:239) at org.apache.calcite.avatica.remote.ProtobufHandler.decode(ProtobufHandler.java:42) at org.apache.calcite.avatica.remote.ProtobufHandlerorg.apache.calcite.avatica.remote.AbstractHandler.apply(AbstractHandler.java:95) at org.apache.calcite.avatica.remote.ProtobufHandler.apply(ProtobufHandler.java:38) org.apache.calcite.avatica.server.AvaticaProtobufHandler.handle(AvaticaProtobufHandler.java:68) at org.eclipse.jetty.server.handler.HandlerList.handle(HandlerList.java:52) at org.eclipse.jetty.server.handler.HandlerWrapper .decode(ProtobufHandler.java:28)org.eclipse.jetty.server.Server.handle(Server.java:497) at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310) org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:245) at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635) .handle(HandlerWrapper.java:97)在org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555) at java.lang.Thread.run(Thread.java:745)

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2016-08-10 13:30:23

问题在于我使用的是菲尼克斯4.7,即使我已经开始使用服务器

代码语言:javascript
复制
./bin/queryserver.py start -Dphoenix.queryserver.serialization=JSON

在移除菲尼克斯4.7并安装4.6之后,可以成功地从python建立连接。

我希望有人会用这个提示:)谢谢!

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/38873593

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档