[root@localhost flink-1.6.1]# ./bin/start-cluster.sh Starting cluster. Starting standalonesession daemon on host localhost.localdomain. Starting taskexecutor daemon on host localhost.localdomain.1.2.4 查看进程 1.2.5 页面访问
http://192.168.1.37:8081/
slot 在flink里面可以认为是资源组,Flink是通过将任务分成子任务并且将这些子任务分配到slot来并行执行程序。 1.2.6 测试1.创建一个读取的文件
root@localhost servers]# touch flink_test
[root@localhost servers]# vi flink_test
[root@localhost servers]#
2.编辑内容
3.开始统计
[root@localhost flink-1.6.1]# bin/flink run /root/export/servers/flink-1.6.1/examples/batch/WordCount.jar --input /root/export/servers/flink_test --output /root/export/servers/flink_data2
Starting execution of program
Program execution finished
Job with JobID 88bfa737c790bb730eb3b36c53ccfe91 has finished.
Job Runtime: 1604 ms
[root@localhost flink-1.6.1]#
其中: flink_test 为输入的文件;flink_data2为输出的结果文件
4.页面查看
点进去,可以查看详情信息
查看flink_data2的输出结果:



