add flink commands

This commit is contained in:
LingZhaoHui 2021-11-03 22:29:58 +08:00
parent 96bf3cdaa5
commit 93ce11e990
2 changed files with 24 additions and 0 deletions

View File

@ -7,3 +7,8 @@
- [Data Sink 介绍](https://www.zeekling.cn/articles/2020/05/04/1588666906660.html)
- [自定义Data Sink](https://www.zeekling.cn/articles/2020/05/05/1588680092763.html)
- [Flink 写入数据到 Kafka](https://www.zeekling.cn/articles/2020/05/15/1589474545288.html)
## flink 命令
- [flink命令详解](command/flink_command.md)

19
command/flink_command.md Normal file
View File

@ -0,0 +1,19 @@
## 简介
记录flink经常使用命令。
## 样例运行
### batch样例
#### 运行WordCount样例
```sh
cd /home/zeek/software/flink-1.12.5/examples/batch
/home/zeek/software/flink-1.12.5/bin/flink run WordCount.jar --input /tmp/word.txt --output /tmp/out.txt
```
### sream样例
#### 运行stream WordCount样例
```sh
cd /home/zeek/software/flink-1.12.5/examples/streaming
/home/zeek/software/flink-1.12.5/bin/flink run WordCount.jar --input /tmp/word.txt --output /tmp/out.txt
```