flink-test/command/flink_command.md
2021-11-03 22:29:58 +08:00

20 lines
492 B
Markdown

## 简介
记录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
```