参考地址
https://ci.apache.org/projects/flink/flink-docs-release-1.8/tutorials/local_setup.html
启动截图
./bin/start-cluster.sh
访问,默认端口为8081
运行官网worldcount示例
xshell中新打开一个窗口,启动端口
nc -l 9000
提交Flink 程序:
./bin/flink run examples/streaming/SocketWindowWordCount.jar --port 9000
网页端可以看到:
进入log目录,查看 tail -f flink-root-taskexecutor-0-hadoop.out