首先,Flink官网下载地址 :https://flink.apache.org/downloads.html 。
环境:
Java 8
Scala 2.11.8
flink-1.6.1-bin-hadoop27-scala_2.11.tgz
安装模式: Local
1、将flink*.tgz解压到本地目录: D:\CodeSoft\CodeEnvironment\flink-1.6.1
2、在配置文件.\conf\flink-conf.yaml 修改默认端口(8081),改为9091
# The port under which the web-based runtime monitor listens.
# A value of -1 deactivates the web server.
#rest.port: 8081
rest.port: 9091
3、进入.\flink-1.6.1\bin目录,找到start-cluster.bat,双击启动,出现两个黑窗口。默认不会关闭。
4、查看flink-webui:浏览器端输入 http://localhost:9091/
5、Flink自带测试程序,测试一下: