当前位置:网站首页>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目录下。
获取更多大数据资料,视频以及技术交流请加群:

边栏推荐
- 【读书】长期更新
- Detailed Explanation of Redis Sentinel Mode Configuration File
- Distributed systems revisited: there will never be a perfect consistency scheme...
- [Decoding tools] Some online tools for Bitcoin
- Error creating bean with name 'configDataContextRefresher' defined in class path resource
- shell函数
- 学习总结week3_3迭代器_模块
- HQL语句执行过程
- Matplotlib(三)—— 实践
- vscode+pytorch use experience record (personal record + irregular update)
猜你喜欢

Flink 状态与容错 ( state 和 Fault Tolerance)

Matplotlib(三)—— 实践

Structured Light 3D Reconstruction (2) Line Structured Light 3D Reconstruction

将照片形式的纸质公章转化为电子公章(不需要下载ps)

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

Lecture 4 Backpropagation Essays

NodeJs接收上传文件并自定义保存路径

第5讲 使用pytorch实现线性回归

Basic properties of binary tree + oj problem analysis

Develop a highly fault-tolerant distributed system
随机推荐
OFDM Lecture 16 5 -Discrete Convolution, ISI and ICI on DMT/OFDM Systems
Requests the library deployment and common function
range函数作用
Flink HA安装配置实战
【过一下14】自习室的一天
【Over 16】Looking back at July
机器学习(一) —— 机器学习基础
第四讲 反向传播随笔
Lecture 4 Backpropagation Essays
SQL(二) —— join窗口函数视图
学习总结week3_3迭代器_模块
day7-列表作业(1)
鼠标放上去变成销售效果
es6迭代协议
2022 The 4th C.Easy Counting Problem (EGF+NTT)
【过一下15】学习 lstm的一周
Xiaobai, you big bulls are lightly abused
学习总结week2_4
【过一下10】sklearn使用记录
Map、WeakMap