diff options
author | Cheng Lian <lian@databricks.com> | 2014-12-04 10:21:03 -0800 |
---|---|---|
committer | Patrick Wendell <pwendell@gmail.com> | 2014-12-04 10:21:03 -0800 |
commit | 28c7acacef974fdabd2b9ecc20d0d6cf6c58728f (patch) | |
tree | 447e909080cbcc3c1199e1e79d7fb506a5ed6a7c /bin/beeline.cmd | |
parent | 7e758d709286e73d2c878d4a2d2b4606386142c7 (diff) | |
download | spark-28c7acacef974fdabd2b9ecc20d0d6cf6c58728f.tar.gz spark-28c7acacef974fdabd2b9ecc20d0d6cf6c58728f.tar.bz2 spark-28c7acacef974fdabd2b9ecc20d0d6cf6c58728f.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
Diffstat (limited to 'bin/beeline.cmd')
-rw-r--r-- | bin/beeline.cmd | 21 |
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 %* |