一、Local本地模式
1、下载安装包
https://archive.apache.org/dist/flink/
使用的版本为 flink-1.13.2-bin-scala_2.11.tgz
2、准备文件
vi /xx/work/words.txt
3、启动Flink本机集群
1 2 | cd /xx/work/flink-1.13.2/ bin/start-cluster.sh |
查看jps
1 2 | 11972 StandaloneSessionClusterEntrypoint 12525 TaskManagerRunner |
4、访问Flink的Web UI
http://192.168.xx.xx:8081/
5、执行word统计
1 2 | cd /xx/work/flink-1.13.2/ ./flink run ../examples/batch/WordCount.jar --input /xx/work/words.txt --output /xx/work/wordOut.txt |
查看wordOut.txt的结果
6、停止Flink
1 2 | cd /xx/work/flink-1.13.2/ bin/stop-cluster.sh |
7、启动shell交互窗口
$bin/start-scala-shell.sh local
作者:Work Hard Work Smart
出处:http://www.cnblogs.com/linlf03/
欢迎任何形式的转载,未经作者同意,请保留此段声明!
· 阿里巴巴 QwQ-32B真的超越了 DeepSeek R-1吗?
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
· 【译】Visual Studio 中新的强大生产力特性
· 【设计模式】告别冗长if-else语句:使用策略模式优化代码结构
· 字符编码:从基础到乱码解决
2020-03-22 Zuul整合Hystrix断路器
2020-03-22 Zuul核心-预定义Filter
2020-03-22 Feign性能优化
2020-03-22 Feign整合Ribbon负载均衡
2020-03-22 Java基础十、Spring Boot /Spring Cloud