aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorMasayoshi TSUZUKI <tsudukim@oss.nttdata.co.jp>2016-03-04 13:53:53 +0000
committerSean Owen <sowen@cloudera.com>2016-03-04 13:53:53 +0000
commite617508244b508b59b4debb35cad3258cddbb9cf (patch)
tree2c08a0fc08e9f03bcb6a4fde69311718fe2d9827 /bin
parent204b02b56afe358b7f2d403fb6e2b9e8a7122798 (diff)
downloadspark-e617508244b508b59b4debb35cad3258cddbb9cf.tar.gz
spark-e617508244b508b59b4debb35cad3258cddbb9cf.tar.bz2
spark-e617508244b508b59b4debb35cad3258cddbb9cf.zip
[SPARK-13673][WINDOWS] Fixed not to pollute environment variables.
## What changes were proposed in this pull request? This patch fixes the problem that `bin\beeline.cmd` pollutes environment variables. The similar problem is reported and fixed in https://issues.apache.org/jira/browse/SPARK-3943, but `bin\beeline.cmd` seems to be added later. ## How was this patch tested? manual tests: I executed the new `bin\beeline.cmd` and confirmed that %SPARK_HOME% doesn't remain in the command prompt. Author: Masayoshi TSUZUKI <tsudukim@oss.nttdata.co.jp> Closes #11516 from tsudukim/feature/SPARK-13673.
Diffstat (limited to 'bin')
-rw-r--r--bin/beeline.cmd3
1 files changed, 1 insertions, 2 deletions
diff --git a/bin/beeline.cmd b/bin/beeline.cmd
index 8ddaa41996..02464bd088 100644
--- a/bin/beeline.cmd
+++ b/bin/beeline.cmd
@@ -17,5 +17,4 @@ 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-class.cmd" org.apache.hive.beeline.BeeLine %*
+cmd /V /E /C "%~dp0spark-class.cmd" org.apache.hive.beeline.BeeLine %*