diff options
author | Masayoshi TSUZUKI <tsudukim@oss.nttdata.co.jp> | 2015-02-06 10:58:26 -0800 |
---|---|---|
committer | Andrew Or <andrew@databricks.com> | 2015-02-06 10:58:55 -0800 |
commit | 2dc94cd8bddd7925e2884716505cd35a3a0bb046 (patch) | |
tree | fa59332151447f071dc4c88be6e19994100a8f37 /bin/spark-submit2.cmd | |
parent | 0a903059cfb538cb0abd028d088436b8789bcff5 (diff) | |
download | spark-2dc94cd8bddd7925e2884716505cd35a3a0bb046.tar.gz spark-2dc94cd8bddd7925e2884716505cd35a3a0bb046.tar.bz2 spark-2dc94cd8bddd7925e2884716505cd35a3a0bb046.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.
(cherry picked from commit c01b9852ea2f7d453249b07d89e62af71bd26e3d)
Signed-off-by: Andrew Or <andrew@databricks.com>
Diffstat (limited to 'bin/spark-submit2.cmd')
-rw-r--r-- | bin/spark-submit2.cmd | 2 |
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 |