入门案例
依赖
依赖
<!-- Either... -->
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-table-api-java-bridge_2.11</artifactId>
<version>1.10.0</version>
<scope>provided</scope>
</dependency>
<!-- or... -->
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-table-api-scala-bridge_2.11</artifactId>
<version>1.10.0</version>
<scope>provided</scope>
</dependency>
<!-- Either... (for the old planner that was available before Flink 1.9) -->
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-table-planner_2.11</artifactId>
<version>1.10.0</version>
<scope>provided</scope>
</dependency>
<!-- or.. (for the new Blink planner) -->
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-table-planner-blink_2.11</artifactId>
<version>1.10.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-streaming-scala_2.11</artifactId>
<version>1.10.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.f

本文介绍了Flink Table API和SQL的入门案例,重点讲解了如何使用这两种API进行批处理的词频统计。文章提到了Flink的相关依赖,包括flink-table-common、flink-table-api-java和flink-table-api-scala等,并指出新版本的API仍处于完善阶段。同时,展示了使用旧版和新版API的程序结构,并提供了SQL和Table API实现批处理WordCount的代码示例。
最低0.47元/天 解锁文章
2万+

被折叠的 条评论
为什么被折叠?



