flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLINK-4581) Table API throws "No suitable driver found for jdbc:calcite"
Date Sat, 22 Oct 2016 08:11:58 GMT

    [ https://issues.apache.org/jira/browse/FLINK-4581?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15597411#comment-15597411
] 

ASF GitHub Bot commented on FLINK-4581:
---------------------------------------

Github user asfgit closed the pull request at:

    https://github.com/apache/flink/pull/2506


> Table API throws "No suitable driver found for jdbc:calcite"
> ------------------------------------------------------------
>
>                 Key: FLINK-4581
>                 URL: https://issues.apache.org/jira/browse/FLINK-4581
>             Project: Flink
>          Issue Type: Bug
>          Components: Table API & SQL
>            Reporter: Timo Walther
>            Assignee: Timo Walther
>
> It seems that in certain cases the internal Calcite JDBC driver cannot be found. We should
either try to get rid of the entire JDBC invocation or fix this bug.
> From ML: http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/Stream-sql-query-in-Flink-tp8928.html
> {code}
> org.apache.flink.client.program.ProgramInvocationException: The main method
> caused an error.
> 	at
> org.apache.flink.client.program.PackagedProgram.callMainMethod(PackagedProgram.java:524)
> 	at
> org.apache.flink.client.program.PackagedProgram.invokeInteractiveModeForExecution(PackagedProgram.java:403)
> 	at
> org.apache.flink.client.program.ClusterClient.run(ClusterClient.java:331)
> 	at org.apache.flink.client.CliFrontend.executeProgram(CliFrontend.java:777)
> 	at org.apache.flink.client.CliFrontend.run(CliFrontend.java:253)
> 	at
> org.apache.flink.client.CliFrontend.parseParameters(CliFrontend.java:1005)
> 	at org.apache.flink.client.CliFrontend.main(CliFrontend.java:1048)
> Caused by: java.lang.RuntimeException: java.sql.SQLException: No suitable
> driver found for jdbc:calcite:
> 	at org.apache.calcite.tools.Frameworks.withPrepare(Frameworks.java:151)
> 	at org.apache.calcite.tools.Frameworks.withPlanner(Frameworks.java:106)
> 	at org.apache.calcite.tools.Frameworks.withPlanner(Frameworks.java:127)
> 	at
> org.apache.flink.api.table.FlinkRelBuilder$.create(FlinkRelBuilder.scala:56)
> 	at
> org.apache.flink.api.table.TableEnvironment.<init>(TableEnvironment.scala:73)
> 	at
> org.apache.flink.api.table.StreamTableEnvironment.<init>(StreamTableEnvironment.scala:58)
> 	at
> org.apache.flink.api.java.table.StreamTableEnvironment.<init>(StreamTableEnvironment.scala:45)
> 	at
> org.apache.flink.api.table.TableEnvironment$.getTableEnvironment(TableEnvironment.scala:376)
> 	at
> org.apache.flink.api.table.TableEnvironment.getTableEnvironment(TableEnvironment.scala)
> 	at org.myorg.quickstart.ReadingFromKafka2.main(ReadingFromKafka2.java:48)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> 	at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:498)
> 	at
> org.apache.flink.client.program.PackagedProgram.callMainMethod(PackagedProgram.java:509)
> 	... 6 more
> Caused by: java.sql.SQLException: No suitable driver found for jdbc:calcite:
> 	at java.sql.DriverManager.getConnection(DriverManager.java:689)
> 	at java.sql.DriverManager.getConnection(DriverManager.java:208)
> 	at org.apache.calcite.tools.Frameworks.withPrepare(Frameworks.java:144)
> 	... 20 more
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message