Skip to content
Snippets Groups Projects
Commit 2a7f5dae authored by Jarrett Meyer's avatar Jarrett Meyer Committed by Felix Cheung
Browse files

[SPARK-20613] Remove excess quotes in Windows executable


## What changes were proposed in this pull request?

Quotes are already added to the RUNNER variable on line 54. There is no need to put quotes on line 67. If you do, you will get an error when launching Spark.

'""C:\Program' is not recognized as an internal or external command, operable program or batch file.

## How was this patch tested?

Tested manually on Windows 10.

Author: Jarrett Meyer <jarrettmeyer@gmail.com>

Closes #17861 from jarrettmeyer/fix-windows-cmd.

(cherry picked from commit b9ad2d19)
Signed-off-by: default avatarFelix Cheung <felixcheung@apache.org>
parent 179f5370
No related branches found
No related tags found
No related merge requests found
......@@ -51,7 +51,7 @@ if not "x%SPARK_PREPEND_CLASSES%"=="x" (
rem Figure out where java is.
set RUNNER=java
if not "x%JAVA_HOME%"=="x" (
set RUNNER="%JAVA_HOME%\bin\java"
set RUNNER=%JAVA_HOME%\bin\java
) else (
where /q "%RUNNER%"
if ERRORLEVEL 1 (
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment