我安装了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/,但那里什么都没有。
2条答案
按热度按时间rnmwe5a21#
根据https://nightlies.apache.org/flink/flink-docs-release-1.14/docs/try-flink/local_installation/,您应该能够在http://localhost:8081/上访问它
hs1ihplo2#
The port of the WebUI is specified in
conf/flink-conf.yaml
with the optionrest.port
. As the official documentation says, the default value of the port is8081
. If the port has already been used by other applications, you could specify another one inconf/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 vialocalhost:8081
, maybe it's because Flink itself is not running normally. For the local installation of Flink, you could check log files located at thelog
folder and find out what happened.