我如何知道Apache Flink在哪个端口上运行?

nkkqxpd9  于 2022-12-09  发布在  Apache
关注(0)|答案(2)|浏览(276)

我安装了apache flink,转到flink-1.14.3文件夹并运行.bin/start-cluster.sh
它似乎已成功启动群集,因为它输出以下内容-

Starting cluster.
Starting standalonesession daemon on host MacBook.local.
Starting taskexecutor daemon on host MacBook.local.

我如何知道Flink正在哪个端口上运行?我在浏览器中转到http://localhost:8081/,但那里什么都没有。

hs1ihplo

hs1ihplo2#

The port of the WebUI is specified in conf/flink-conf.yaml with the option rest.port . As the official documentation says, the default value of the port is 8081 . If the port has already been used by other applications, you could specify another one in conf/flink-conf.yaml .
If you wish to find which application is listening to 8081 , you could refer to these answers:
Who is listening on a given TCP port on Mac OS X?https://unix.stackexchange.com/questions/106561/finding-the-pid-of-the-process-using-a-specific-port
If there's no applications using the port 8081 and you cannot access the WebUI via localhost:8081 , maybe it's because Flink itself is not running normally. For the local installation of Flink, you could check log files located at the log folder and find out what happened.

相关问题