Repository: spark Updated Branches: refs/heads/master fe3740c4c -> c01b9852e
[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 <tsudu...@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. Project: http://git-wip-us.apache.org/repos/asf/spark/repo Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/c01b9852 Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/c01b9852 Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/c01b9852 Branch: refs/heads/master Commit: c01b9852ea2f7d453249b07d89e62af71bd26e3d Parents: fe3740c Author: Masayoshi TSUZUKI <tsudu...@oss.nttdata.co.jp> Authored: Fri Feb 6 10:58:26 2015 -0800 Committer: Andrew Or <and...@databricks.com> Committed: Fri Feb 6 10:58:26 2015 -0800 ---------------------------------------------------------------------- bin/spark-submit2.cmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/spark/blob/c01b9852/bin/spark-submit2.cmd ---------------------------------------------------------------------- diff --git a/bin/spark-submit2.cmd b/bin/spark-submit2.cmd index 12244a9..446cbc7 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 --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org For additional commands, e-mail: commits-h...@spark.apache.org