我正在尝试为Presto和InfluxDB创建一个自定义连接器,以便Presto可以在InfluxDB上运行SQL查询.有没有这种连接器可用的例子?
Connectors are the source of all data for queries in Presto. Even if your data source doesn’t have underlying tables backing it, as long as you adapt your data source to the API expected by Presto, you can write queries against this data.
Run Code Online (Sandbox Code Playgroud)
我找到的用于编写连接器的唯一文档是:https: //prestodb.io/docs/current/develop/example-http.html
如果有人有其他例子,请你分享一下吗?
presto源树中有多个连接器.
当您连接到具有JDBC驱动程序的数据源(可能不是您的情况)时,扩展presto-base-jdbc驱动程序几乎可以满足您的所有需求.请参阅https://github.com/prestosql/presto/tree/master/presto-postgresql
当您连接到不支持JDBC的数据源(或者您可能需要更多数据源presto-base-jdbc)时,您需要实现所有相关的连接器接口.没有比Java接口和源代码,这等好的文档,但是你可以按照例子如https://github.com/prestosql/presto/tree/master/presto-cassandra,https://github.com/ prestosql /急/树/主/似的,accumulo
另一个选择是Greg Leclercq建议实施Thrift连接器.看他的答案的方向.
| 归档时间: |
|
| 查看次数: |
715 次 |
| 最近记录: |