To start the web interface when running Flink locally, we must enable the web interface in FlinkMiniCluster . FlinkMiniCluster is a class that controls the launch of all Flink services locally.
Enable Dependency:
<dependency> <groupId>org.apache.flink</groupId> <artifactId>flink-runtime-web_${scala.binary.version}</artifactId> <version>${flink.version}</version> </dependency>
The following snippet will enable the web interface for StreamExecutionEnvironment :
You can also use RestOptions to configure the server:
conf.setInteger(RestOptions.PORT, 8082);
Robert Metzger
source share