Apache Drill-以嵌入式模式连接到Drill [java] [英] Apache Drill - connection to Drill in Embedded Mode [java]

查看:186
本文介绍了Apache Drill-以嵌入式模式连接到Drill [java]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想通过Java应用程序连接到Drill,到目前为止,我一直在尝试使用JDBC进行操作,并且我正在使用 https://github.com/vicenteg/DrillJDBCExample ,但是... 当我将DB_URL静态变量更改为"jdbc:drill:zk = local" 并启动应用程序时,出现异常:

I want to connect to Drill by Java app, and so far I was trying to use JDBC to do it and I'm using example from https://github.com/vicenteg/DrillJDBCExample, but... when I change DB_URL static variable to "jdbc:drill:zk=local" and start app i get exception:

java.sql.SQLNonTransientConnectionException:不支持仅使用Drill的jdbc-all JDBC驱动程序Jar文件以嵌入式模式运行Drill.

java.sql.SQLNonTransientConnectionException: Running Drill in embedded mode using Drill's jdbc-all JDBC driver Jar file alone is not supported.

,到目前为止,我还没有找到任何解决方法.知道如何以嵌入式模式连接到Drill吗?到目前为止,我不想设置分布式模式.

and so far I didn't found any workaround. Any idea how to connect to Drill in embedded mode? I don't want to set up distributed mode so far.

网络上确实没有太多关于它的内容.

There is truly not much about it on the web.

任何帮助将不胜感激!

推荐答案

如果要连接到本地嵌入式实例(不带Zookeeper),则应直接使用钻头主机,例如:

If you are connecting to a local embedded instance(without Zookeeper), you should use drillbit host directly like:

jdbc:drill:drillbit=<drillbit-host>:[port]

例如: jdbc:drill:drillbit=localhost

这篇关于Apache Drill-以嵌入式模式连接到Drill [java]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆