Repository: spark
Updated Branches:
  refs/heads/branch-2.2 dbb54a7b3 -> 1fa3c86a7


[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 <jarrettme...@gmail.com>

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

(cherry picked from commit b9ad2d1916af5091c8585d06ccad8219e437e2bc)
Signed-off-by: Felix Cheung <felixche...@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/1fa3c86a
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/1fa3c86a
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/1fa3c86a

Branch: refs/heads/branch-2.2
Commit: 1fa3c86a740e072957a2104dbd02ca3c158c508d
Parents: dbb54a7
Author: Jarrett Meyer <jarrettme...@gmail.com>
Authored: Fri May 5 08:30:42 2017 -0700
Committer: Felix Cheung <felixche...@apache.org>
Committed: Fri May 5 08:30:56 2017 -0700

----------------------------------------------------------------------
 bin/spark-class2.cmd | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/1fa3c86a/bin/spark-class2.cmd
----------------------------------------------------------------------
diff --git a/bin/spark-class2.cmd b/bin/spark-class2.cmd
index 9faa7d6..f6157f4 100644
--- a/bin/spark-class2.cmd
+++ b/bin/spark-class2.cmd
@@ -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 (


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org
For additional commands, e-mail: commits-h...@spark.apache.org

Reply via email to