aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorMasayoshi TSUZUKI <tsudukim@oss.nttdata.co.jp>2015-02-06 10:58:26 -0800
committerAndrew Or <andrew@databricks.com>2015-02-06 10:58:26 -0800
commitc01b9852ea2f7d453249b07d89e62af71bd26e3d (patch)
treefa59332151447f071dc4c88be6e19994100a8f37 /bin
parentfe3740c4c859d087b714c666741a29061bba5f58 (diff)
downloadspark-c01b9852ea2f7d453249b07d89e62af71bd26e3d.tar.gz
spark-c01b9852ea2f7d453249b07d89e62af71bd26e3d.tar.bz2
spark-c01b9852ea2f7d453249b07d89e62af71bd26e3d.zip
[SPARK-5396] Syntax error in spark scripts on windows.
Modified syntax error in spark-submit2.cmd. Command prompt doesn't have "defined" operator. Author: Masayoshi TSUZUKI <tsudukim@oss.nttdata.co.jp> Closes #4428 from tsudukim/feature/SPARK-5396 and squashes the following commits: ec18465 [Masayoshi TSUZUKI] [SPARK-5396] Syntax error in spark scripts on windows.
Diffstat (limited to 'bin')
-rw-r--r--bin/spark-submit2.cmd2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/spark-submit2.cmd b/bin/spark-submit2.cmd
index 12244a9cb0..446cbc74b7 100644
--- a/bin/spark-submit2.cmd
+++ b/bin/spark-submit2.cmd
@@ -25,7 +25,7 @@ set ORIG_ARGS=%*
rem Reset the values of all variables used
set SPARK_SUBMIT_DEPLOY_MODE=client
-if not defined %SPARK_CONF_DIR% (
+if [%SPARK_CONF_DIR%] == [] (
set SPARK_CONF_DIR=%SPARK_HOME%\conf
)
set SPARK_SUBMIT_PROPERTIES_FILE=%SPARK_CONF_DIR%\spark-defaults.conf