If you want to run Flink locally on a Windows machine you need to download and unpack the binary Flink distribution. After that you can WSL or Cygwin to run the Flink Jobmanager.
With Cygwin you need to start the Cygwin Terminal, navigate to your Flink directory and run the start-cluster.sh
script:
If you are installing Flink from the git repository and you are using the Windows git shell, Cygwin can produce a failure similar to this one:
This error occurs because git is automatically transforming UNIX line endings to Windows style line endings when running in Windows. The problem is that Cygwin can only deal with UNIX style line endings. The solution is to adjust the Cygwin settings to deal with the correct line endings by following these three steps:
Start a Cygwin shell.
Determine your home directory by entering
This will return a path under the Cygwin root path.
.bash_profile
in the home directory and append the following: (If the file does not exist you will have to create it)Save the file and open a new bash shell.