Search code examples
windowslocalhostapache-flink

Flink localhost dashboard not working despite cluster starting


I have downloaded Flink 1.5.0 and ran the start-cluster script and the cluster seems to have started successfully:

$ ./bin/start-cluster.sh
Starting cluster.
Starting standalonesession daemon on host LAPTOP-HRAHBL24.
Starting taskexecutor daemon on host LAPTOP-HRAHBL24.

However, I am when I access http://localhost:8081/ the connection is being refused. I followed the question to un-comment the localhost lines in my hosts file: https://superuser.com/questions/1008349/unable-to-connect-to-localhost-after-windows-10-upgrade

I checked the logs and I have this error in it:"/d/Programs/flink-1.5.0/bin/flink-daemon.sh: line 131: C:\Program: No such file or directory" I had this error with Flink 1.10.1, I tried searching it but couldn't find anything

Any idea what I can do to fix this?


Solution

  • The problem was the space in "Program Files", so I set the java home in conf/flink-conf.xml instead and this error was gone.