aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCheng Lian <lian@databricks.com>2014-12-04 10:21:03 -0800
committerPatrick Wendell <pwendell@gmail.com>2014-12-04 10:21:19 -0800
commit2fbe488a0cd7814fbd4f88041c01e68d2796258c (patch)
treeeefffa13a9d531ed56078a6232ee483d9f45aafb
parent34fdca0a55ba636d6ebcc7a588df81e042a07827 (diff)
downloadspark-2fbe488a0cd7814fbd4f88041c01e68d2796258c.tar.gz
spark-2fbe488a0cd7814fbd4f88041c01e68d2796258c.tar.bz2
spark-2fbe488a0cd7814fbd4f88041c01e68d2796258c.zip
[SPARK-4683][SQL] Add a beeline.cmd to run on Windows
Tested locally with a Win7 VM. Connected to a Spark SQL Thrift server instance running on Mac OS X with the following command line: ``` bin\beeline.cmd -u jdbc:hive2://10.0.2.2:10000 -n lian ``` <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/apache/spark/3599) <!-- Reviewable:end --> Author: Cheng Lian <lian@databricks.com> Closes #3599 from liancheng/beeline.cmd and squashes the following commits: 79092e7 [Cheng Lian] Windows script for BeeLine (cherry picked from commit 28c7acacef974fdabd2b9ecc20d0d6cf6c58728f) Signed-off-by: Patrick Wendell <pwendell@gmail.com>
-rw-r--r--bin/beeline.cmd21
1 files changed, 21 insertions, 0 deletions
diff --git a/bin/beeline.cmd b/bin/beeline.cmd
new file mode 100644
index 0000000000..8293f31102
--- /dev/null
+++ b/bin/beeline.cmd
@@ -0,0 +1,21 @@
+@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-class.cmd org.apache.hive.beeline.BeeLine %*