These instructions are failing for me and producin...
# troubleshooting
m
These instructions are failing for me and producing above error. I have downloaded flink 1.19.1 on my windows machine. Has anyone tried these instructions and faced a similar issue. Thank you for your help in this regard. https://nightlies.apache.org/flink/flink-docs-release-1.19/docs/try-flink/local_installation/
d
This error means that your flink client is not able to connect to the JobManager at localhost:8081. You should start running it locally and check the logs to see if the JobManager is able to claim the port or not. Also run
Copy code
netstat -tuln | grep 8081
to see if port is claimed and by what process.
Also since on windows you need to use start-cluster.bat rather than .sh and make sure that FLINK_HOME is set. Also check what version of Java you are using.
Note default ports for job manager are set in conf/flink-conf.yaml
8081 is a common port for many other applications so you should check if its in use. Also restart you cluster
I think you need Java 11 or above for this version of Flink
also another way with netstat is
Copy code
netstat -anp | find ":8081"
m
So I tried to implement all the recommendations. I have java 22. I noticed that there is few changes in flink 1.19.1 version. they have changed file to config.yaml from flink-conf.yaml. There is also a master file that saves localhost:8081 as the default port. there is no .bat file for starting cluster. I am using cygwin/gitbash to run the commands. I set FLINK_HOME. I noticed that when I start the cluster the web interface is not coming up on localhost:8081. Per their getting started instructions, all I need to do is install flink locally and start the cluster and then see it come up on 8081.
Copy code
ps aux | grep flink
does not return anything. In config.yaml setting port, binding port for rest to 8081, didnt help.
d
ok, yes maybe better to run using docker
m
I finally got myself an Ubuntu instance and installed java 11. The standalone cluster of Flink worked on this setup. Thanks for all your help.