2017-12-07 18 views
3

Presto에서 InfluxDB에서 SQL 쿼리를 실행할 수 있도록 Presto 및 InfluxDB에 대한 사용자 지정 커넥터를 만들려고합니다. 이미 사용 가능한 커넥터의 예가 있습니까?Presto 및 InfluxDB에 대한 사용자 지정 커넥터를 만드는 방법

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. 

내가 커넥터를 쓰기 위해 발견 된 유일한 문서입니다 : 사람이 다른 예를 가지고 https://prestodb.io/docs/current/develop/example-http.html

경우, 당신이 그것을 공유하시기 바랍니다 수 있습니까?

답변

3

프레스토 소스 트리에 여러 커넥터가 있습니다.

JDBC 드라이버가있는 데이터 소스에 연결할 때 (아마도 사용자의 경우는 아님) presto-base-jdbc 드라이버를 확장하면 필요한 거의 모든 것이 제공됩니다. 예를 들어 https://github.com/prestodb/presto/tree/master/presto-postgresql

presto-base-jdbc으로 JDBC가 지원되지 않는 데이터 소스에 연결하거나 더 많은 것을 필요로하는 경우 모든 관련 커넥터 인터페이스를 구현해야합니다. Java 인터페이스 & 소스 코드 이외의 다른 좋은 설명서는 없지만 예를 들어 볼 수 있습니다. https://github.com/prestodb/presto/tree/master/presto-cassandra, https://github.com/prestodb/presto/tree/master/presto-accumulo