diff options
author | Masayoshi TSUZUKI <tsudukim@oss.nttdata.co.jp> | 2014-10-14 18:50:14 -0700 |
---|---|---|
committer | Andrew Or <andrewor14@gmail.com> | 2014-10-14 18:50:14 -0700 |
commit | 66af8e2508bfe9c9d4aecc17a19f297c98e9661d (patch) | |
tree | 11918e2e8a293fb20ed6427613b5c134f47f90c0 /bin/spark-shell2.cmd | |
parent | 7b4f39f647da1f7b1b57e38827a8639243c661cb (diff) | |
download | spark-66af8e2508bfe9c9d4aecc17a19f297c98e9661d.tar.gz spark-66af8e2508bfe9c9d4aecc17a19f297c98e9661d.tar.bz2 spark-66af8e2508bfe9c9d4aecc17a19f297c98e9661d.zip |
[SPARK-3943] Some scripts bin\*.cmd pollutes environment variables in Windows
Modified not to pollute environment variables.
Just moved the main logic into `XXX2.cmd` from `XXX.cmd`, and call `XXX2.cmd` with cmd command in `XXX.cmd`.
`pyspark.cmd` and `spark-class.cmd` are already using the same way, but `spark-shell.cmd`, `spark-submit.cmd` and `/python/docs/make.bat` are not.
Author: Masayoshi TSUZUKI <tsudukim@oss.nttdata.co.jp>
Closes #2797 from tsudukim/feature/SPARK-3943 and squashes the following commits:
b397a7d [Masayoshi TSUZUKI] [SPARK-3943] Some scripts bin\*.cmd pollutes environment variables in Windows
Diffstat (limited to 'bin/spark-shell2.cmd')
-rw-r--r-- | bin/spark-shell2.cmd | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/bin/spark-shell2.cmd b/bin/spark-shell2.cmd new file mode 100644 index 0000000000..2ee60b4e2a --- /dev/null +++ b/bin/spark-shell2.cmd @@ -0,0 +1,22 @@ +@echo off + +rem +rem Licensed to the Apache Software Foundation (ASF) under one or more +rem contributor license agreements. See the NOTICE file distributed with +rem this work for additional information regarding copyright ownership. +rem The ASF licenses this file to You under the Apache License, Version 2.0 +rem (the "License"); you may not use this file except in compliance with +rem the License. You may obtain a copy of the License at +rem +rem http://www.apache.org/licenses/LICENSE-2.0 +rem +rem Unless required by applicable law or agreed to in writing, software +rem distributed under the License is distributed on an "AS IS" BASIS, +rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +rem See the License for the specific language governing permissions and +rem limitations under the License. +rem + +set SPARK_HOME=%~dp0.. + +cmd /V /E /C %SPARK_HOME%\bin\spark-submit.cmd --class org.apache.spark.repl.Main %* spark-shell |