当前位置:网站首页>Flink Table API 和 SQL之概述
Flink Table API 和 SQL之概述
2022-08-05 05:14:00 【bigdata1024】
Flink针对标准的流处理和批处理提供了两种相关的API,Table API和sql。TableAPI允许用户以一种很直观的方式进行select 、filter和join操作。Flink SQL支持基于 Apache Calcite实现的标准SQL。针对批处理和流处理可以提供相同的处理语义和结果。
Flink Table API、SQL接口和Flink的DataStream API、DataSet API是紧密联系在一起的。
使用步骤:
Flink的Table API和SQL是捆绑在flink-table依赖中的。所以,如果你的项目中想要使用Table API 和SQL的话,必须要添加下面依赖
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-table_2.11</artifactId>
<version>1.6.1</version>
</dependency>注意:针对Flink 的scala操作你还需要添加下面依赖
针对Flink的scala batch操作添加如下依赖
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-scala_2.11</artifactId>
<version>1.6.1</version>
</dependency>针对Flink的scala streaming操作添加如下依赖:
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-streaming-scala_2.11</artifactId>
<version>1.6.1</version>
</dependency>注意:为了避免用户的类加载器被垃圾回收器回收,官方不建议把flink-table这个jar包和业务代码包含在一块。
推荐把Flink-table的依赖拷贝到Flink的lib目录下。
获取更多大数据资料,视频以及技术交流请加群:

边栏推荐
猜你喜欢

The mall background management system based on Web design and implementation

【Transfer】What is etcd

Pycharm中使用pip安装第三方库安装失败:“Non-zero exit code (2)“的解决方法

Using QR codes to solve fixed asset management challenges

Flutter real machine running and simulator running

【过一下8】全连接神经网络 视频 笔记

OFDM Lecture 16 5 -Discrete Convolution, ISI and ICI on DMT/OFDM Systems

CAP+BASE
![[Go through 3] Convolution & Image Noise & Edge & Texture](/img/7b/2214020cadf06d9211fd40fb5f1b63.png)
[Go through 3] Convolution & Image Noise & Edge & Texture

第四讲 back propagation 反向传播
随机推荐
【After a while 6】Machine vision video 【After a while 2 was squeezed out】
【Reading】Long-term update
【过一下11】随机森林和特征工程
1.3 mysql batch insert data
redis事务
【过一下7】全连接神经网络视频第一节的笔记
SQL(二) —— join窗口函数视图
【Over 16】Looking back at July
Qt produces 18 frames of Cupid to express his love, is it your Cupid!!!
shell函数
Transformation 和 Action 常用算子
鼠标放上去变成销售效果
[Let's pass 14] A day in the study room
【技能】长期更新
【读书】长期更新
Mesos学习
day8字典作业
机器学习(一) —— 机器学习基础
day7-列表作业(1)
学习总结week2_3