flink-test/command/flink_command.md

20 lines
492 B
Markdown
Raw Permalink Normal View History

2021-11-03 14:29:58 +00:00
## 简介
记录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
```