1.在IDE中編寫Flink程式碼,檢視Web UI,從而來了解Flink程式的執行情況
-
<dependency> <groupId>org.apache.flink</groupId> <artifactId>flink-runtime-web</artifactId> <version>${flink.version}</version>
</dependency>
Configuration configuration = new Configuration();
StreamExecutionEnvironment env = StreamExecutionEnvironment.createLocalEnvironmentWithWebUI(configuration);
3.訪問 http://localhost:8081