-
Notifications
You must be signed in to change notification settings - Fork 28.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SPARK-6568] spark-shell.cmd --jars option does not accept the jar that has space in its path #5347
Conversation
…at has space in its path escape spaces in the arguments.
Test build #29664 has started for PR 5347 at commit |
This PR requires #5227 merged. (https://issues.apache.org/jira/browse/SPARK-6435) |
Test build #29664 has finished for PR 5347 at commit
|
Test FAILed. |
@@ -1651,7 +1651,7 @@ private[spark] object Utils extends Logging { | |||
/** | |||
* Format a Windows path such that it can be safely passed to a URI. | |||
*/ | |||
def formatWindowsPath(path: String): String = path.replace("\\", "/") | |||
def formatWindowsPath(path: String): String = path.replace("\\", "/").replace(" ", "%20") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm, is this specific to Windows, even? if I had a path with a space on Linux it would fail similarly, I'd imagine? I bet we dont' get that case right either.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, forgot to consider Linux since I have hardly ever seen the path with spaces in Linux.
I'll move this code to somewhere else.
Sorry that I accidentally merged this PR instead of another one. I reverted the commit. So please reopen this PR and continue the discussion. |
OK, but is it available to reopen the merged pull request? I can't find the reopen button. |
New version #5447 is sent. |
escape spaces in the arguments.