From 2ba9b6a2dfff8eb06b6f93024f5140e784b8be49 Mon Sep 17 00:00:00 2001 From: Jon Maurer Date: Wed, 10 Feb 2016 09:54:22 +0000 Subject: [SPARK-11518][DEPLOY, WINDOWS] Handle spaces in Windows command scripts Author: Jon Maurer Author: Jonathan Maurer Closes #10789 from tritab/cmd_updates. --- bin/load-spark-env.cmd | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bin/load-spark-env.cmd') diff --git a/bin/load-spark-env.cmd b/bin/load-spark-env.cmd index 59080edd29..0977025c20 100644 --- a/bin/load-spark-env.cmd +++ b/bin/load-spark-env.cmd @@ -27,7 +27,7 @@ if [%SPARK_ENV_LOADED%] == [] ( if not [%SPARK_CONF_DIR%] == [] ( set user_conf_dir=%SPARK_CONF_DIR% ) else ( - set user_conf_dir=%~dp0..\conf + set user_conf_dir=..\conf ) call :LoadSparkEnv @@ -35,8 +35,8 @@ if [%SPARK_ENV_LOADED%] == [] ( rem Setting SPARK_SCALA_VERSION if not already set. -set ASSEMBLY_DIR2=%SPARK_HOME%/assembly/target/scala-2.11 -set ASSEMBLY_DIR1=%SPARK_HOME%/assembly/target/scala-2.10 +set ASSEMBLY_DIR2="%SPARK_HOME%\assembly\target\scala-2.11" +set ASSEMBLY_DIR1="%SPARK_HOME%\assembly\target\scala-2.10" if [%SPARK_SCALA_VERSION%] == [] ( -- cgit v1.2.3