ASF GitHub Bot commented on FLINK-4581:

GitHub user twalthr opened a pull request:


    [FLINK-4581] [table] Table API throws "No suitable driver found for 

    Thanks for contributing to Apache Flink. Before you open your pull request, 
please take the following check list into consideration.
    If your changes take all of the items into account, feel free to open your 
pull request. For more information and/or questions please refer to the [How To 
Contribute guide](http://flink.apache.org/how-to-contribute.html).
    In addition to going through the list, please provide a meaningful 
description of your changes.
    - [x] General
      - The pull request references the related JIRA issue ("[FLINK-XXX] Jira 
title text")
      - The pull request addresses only one issue
      - Each commit in the PR has a meaningful commit message (including the 
JIRA id)
    - [x] Documentation
      - Documentation has been added for new functionality
      - Old documentation affected by the pull request has been updated
      - JavaDoc for public methods has been added
    - [x] Tests & Build
      - Functionality added by the pull request is covered by tests
      - `mvn clean verify` has been executed successfully locally or a Travis 
build has passed
    This PR simplifies the planner creation. A dummy JDBC connection which also 
caused problems for a user is not necessary anymore.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/twalthr/flink FLINK-4581

Alternatively you can review and apply these changes as the patch at:


To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #2506
commit d3b0a7a0209526ece85bd27618a6400829b253d0
Author: twalthr <twal...@apache.org>
Date:   2016-09-16T09:41:15Z

    [FLINK-4581] [table] Table API throws "No suitable driver found for 


> 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

Reply via email to