NoSuchMethodError: org.apache.calcite.tools.FrameworkConfig.getTraitDefs()

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

NoSuchMethodError: org.apache.calcite.tools.FrameworkConfig.getTraitDefs()

LakeShen
Hi all,when I use blink flink-sql-parser module,the maven dependency like
this:

<dependency>
<groupId>com.alibaba.blink</groupId>
<artifactId>flink-sql-parser</artifactId>
<version>1.5.1</version>
</dependency>

I also import the flink 1.9 blink-table-planner module , I
use FlinkPlannerImpl to parse the sql to get the List<SqlNodeInfo>. But
when I run the program , it throws the exception like this:



*Exception in thread "main" java.lang.NoSuchMethodError:
org.apache.calcite.tools.FrameworkConfig.getTraitDefs()Lorg/apache/flink/shaded/calcite/com/google/common/collect/ImmutableList;
at
org.apache.flink.sql.parser.plan.FlinkPlannerImpl.<init>(FlinkPlannerImpl.java:93)
at
com.youzan.bigdata.allsqldemo.utils.FlinkSqlUtil.getSqlNodeInfos(FlinkSqlUtil.java:33)
at
com.youzan.bigdata.allsqldemo.KafkaSrcKafkaSinkSqlDemo.main(KafkaSrcKafkaSinkSqlDemo.java:56)*

* How can I solve this problem? Thanks to your reply.*
Reply | Threaded
Open this post in threaded view
|

Re: NoSuchMethodError: org.apache.calcite.tools.FrameworkConfig.getTraitDefs()

Jark
Administrator
Hi Lakeshen,

Thanks for trying out blink planner.
First question, are you using blink-1.5.1 or flink-1.9-table-planner-blink
?
We suggest to use the latter one because we don't maintain blink-1.5.1, you
can try flink 1.9 instead.


Best,
Jark


On Tue, 30 Jul 2019 at 17:02, LakeShen <[hidden email]> wrote:

> Hi all,when I use blink flink-sql-parser module,the maven dependency like
> this:
>
> <dependency>
> <groupId>com.alibaba.blink</groupId>
> <artifactId>flink-sql-parser</artifactId>
> <version>1.5.1</version>
> </dependency>
>
> I also import the flink 1.9 blink-table-planner module , I
> use FlinkPlannerImpl to parse the sql to get the List<SqlNodeInfo>. But
> when I run the program , it throws the exception like this:
>
>
>
> *Exception in thread "main" java.lang.NoSuchMethodError:
>
> org.apache.calcite.tools.FrameworkConfig.getTraitDefs()Lorg/apache/flink/shaded/calcite/com/google/common/collect/ImmutableList;
> at
>
> org.apache.flink.sql.parser.plan.FlinkPlannerImpl.<init>(FlinkPlannerImpl.java:93)
> at
>
> com.youzan.bigdata.allsqldemo.utils.FlinkSqlUtil.getSqlNodeInfos(FlinkSqlUtil.java:33)
> at
>
> com.youzan.bigdata.allsqldemo.KafkaSrcKafkaSinkSqlDemo.main(KafkaSrcKafkaSinkSqlDemo.java:56)*
>
> * How can I solve this problem? Thanks to your reply.*
>