GitHub user zentol opened a pull request:
https://github.com/apache/flink/pull/3954
[FLINK-6628] Fix start scripts on Windows
This PR fixes the `flink-daemon.sh` and `taskmanager.sh` script for cygwin
for directories containing spaces.
They were broken in 11c868f91db773af626ac6ac4dcba9820c13fa8a.
The change in the daemon script is straight-forward; to prevent the path
containing the space to be interpreted as to arguments we wrap it in `"` which
causes the entire path, including the space, to be passed as a single argument.
The change in the taskmanager script is as subtle as it gets. When storing
the call like this `TM_COMMAND="${FLINK_BIN_DIR}/flink-daemon.sh $STARTSTOP
taskmanager ${args[@]}"` and executing it later spaces are once again used as
to separate arguments, breaking the execution. We can't use the trick used
above, since then the entire expressions is used as a single argument (i.e.
path to an executable) which obviously fails.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/zentol/flink 6628_win_script
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/flink/pull/3954.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #3954
----
commit f4da72abc7d8d5c380f4552eead69ee477833c8a
Author: zentol <[email protected]>
Date: 2017-05-19T14:50:37Z
[FLINK-6628] Fix start scripts on Windows
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---