My goal is to kill Flink task manager and then restart it on Windows. This is needed to stimulate error in Flink so that I can see checkpoint work. I have managed to find the task manager PID by looking up the PID against the port it listens to. So killing that PID should kill taskmanager but I am unable to find a way to restart Flink taskmanager on windows because the taskmanager script is a shell script. Please help me in below two queries.
- How to restart Flink taskmanager on windows? Do we need to install cygwin and use it. Will it work? If cygwin works please provide steps to proceed to restart taskmanager.
- Is there a more elegant way to know the taskmanager PID on windows?