Depending on various parameters such as data size or number of machines in the cluster, Flink’s optimizer automatically chooses an execution strategy for your program. In many cases, it can be useful to know how exactly Flink will execute your program.
Plan Visualization Tool
Flink comes packaged with a visualization tool for execution plans. The HTML document containing
the visualizer is located under
tools/planVisualizer.html. It takes a JSON representation of
the job execution plan and visualizes it as a graph with complete annotations of execution
The following code shows how to print the execution plan JSON from your program:
To visualize the execution plan, do the following:
planVisualizer.htmlwith your web browser,
After these steps, a detailed execution plan will be visualized.
Flink offers a web interface for submitting and executing jobs. The interface is part of the JobManager’s
web interface for monitoring, per default running on port 8081. Job submission via this interfaces requires
that you have set
jobmanager.web.submit.enable: true in
You may specify program arguments before the job is executed. The plan visualization enables you to show the execution plan before executing the Flink job.