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

边栏推荐
- Multi-threaded query results, add List collection
- [Go through 7] Notes from the first section of the fully connected neural network video
- "PHP8 Beginner's Guide" A brief introduction to PHP
- Xiaobai, you big bulls are lightly abused
- [Go through 4] 09-10_Classic network analysis
- 学习总结week3_3迭代器_模块
- Machine Learning (2) - Machine Learning Fundamentals
- [Student Graduation Project] Design and Implementation of the Website Based on the Web Student Information Management System (13 pages)
- flink实例开发-batch批处理实例
- day9-字符串作业
猜你喜欢

第二讲 Linear Model 线性模型
![[Student Graduation Project] Design and Implementation of the Website Based on the Web Student Information Management System (13 pages)](/img/86/9c9a2541f2b7089ae47e9832fffdb3.png)
[Student Graduation Project] Design and Implementation of the Website Based on the Web Student Information Management System (13 pages)
![[Go through 10] sklearn usage record](/img/70/60783c7d16000c6e9d753d8db9a330.png)
[Go through 10] sklearn usage record

【过一下6】机器视觉视频 【过一下2被挤掉了】

解决端口占用问题

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

位运算符与逻辑运算符的区别

Algorithms - ones and zeros (Kotlin)
![LeetCode: 1403. Minimum subsequence in non-increasing order [greedy]](/img/99/41629dcd84e95eb3672d0555d6ef2c.png)
LeetCode: 1403. Minimum subsequence in non-increasing order [greedy]

Pycharm中使用pip安装第三方库安装失败:“Non-zero exit code (2)“的解决方法
随机推荐
Difference between for..in and for..of
Convert the paper official seal in the form of a photo into an electronic official seal (no need to download ps)
【NFT开发】设计师无技术基础保姆级开发NFT教程在Opensea上全套开发一个NFT项目+构建Web3网站
「PHP8入门指南」PHP简明介绍
The fourth back propagation back propagation
[Go through 10] sklearn usage record
[Go through 7] Notes from the first section of the fully connected neural network video
怎么更改el-table-column的边框线
JSX基础
Lecture 5 Using pytorch to implement linear regression
[Decoding tools] Some online tools for Bitcoin
[Remember 1] June 29, 2022 Brother and brother double pain
el-table鼠标移入表格改变显示背景色
Distributed and Clustered
第三讲 Gradient Tutorial梯度下降与随机梯度下降
Using pip to install third-party libraries in Pycharm fails to install: "Non-zero exit code (2)" solution
shell函数
Multi-threaded query results, add List collection
Do you use tomatoes to supervise your peers?Add my study room, come on together
【过一下14】自习室的一天