前言
在上一篇我们从理论上讲解了下Flink Table相关的理论知识,本篇将结合实际代码,演示下如何使用Flink Table Api读取本地文件数据并输出;
1、导入maven依赖
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-java</artifactId>
<version>1.10.1</version>
</dependency>
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-streaming-java_2.12</artifactId>
<version>1.10.1</version>
</dependency>
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-connector-k