jdk1.8
scala12.11:https://www.scala-lang.org/download/
flink官方中文文档:https://flink.apache.org/zh/downloads.html
flink1.9.0安装包:https://archive.apache.org/dist/flink/flink-1.9.0/
打开cmd,执行
start-cluster
cmd 进入 fink 的 bin 目录
cd %FLINK_HOME%\bin && D:
执行官方 demo wordcount.jar 统计 readme.txt 文件的单词个数,将结果输出到 wordcount.txt 文件
flink run %FLINK_HOME%\examples\batch\WordCount.jar -input %FLINK_HOME%\README.txt --output %FLINK_HOME%\wordcount.txt
点击 Add New 上传本地 jar 包
上传之后点击 submit 提交
进入jdk bin目录下执行 jvisualvm.exe
选择 org.apache.flink.runtime.taskexecutor.TaskManagerRunner,点击监视查看TaskManager进程的资源利用
其他运行在JVM的任务也可以在 Java VisualVM 客户端下查看
https://cloud.tencent.com/developer/article/1818695
https://cloud.tencent.com/developer/article/1818696
start-all.cmd
start %KAFKA_HOME%\bin\windows\zookeeper-server-start %KAFKA_HOME%\config\zookeeper.properties
start %KAFKA_HOME%\bin\windows\kafka-server-start %KAFKA_HOME%\config\server.properties
start %FLINK_HOME%\bin\start-cluster
执行此脚本可以多窗口同时启动 kafka flink