aboutsummaryrefslogtreecommitdiff
path: root/bin/spark-shell
diff options
context:
space:
mode:
authorNeville Li <neville@spotify.com>2014-05-18 13:31:23 -0700
committerPatrick Wendell <pwendell@gmail.com>2014-05-18 13:37:46 -0700
commitebcd2d68897f423614d0629758240da97dca4a12 (patch)
tree354a8e197301f8c8d9fc2ade923103ada88a2b04 /bin/spark-shell
parent442808a7482b81c8de887c901b424683da62022e (diff)
downloadspark-ebcd2d68897f423614d0629758240da97dca4a12.tar.gz
spark-ebcd2d68897f423614d0629758240da97dca4a12.tar.bz2
spark-ebcd2d68897f423614d0629758240da97dca4a12.zip
Fix spark-submit path in spark-shell & pyspark
Author: Neville Li <neville@spotify.com> Closes #812 from nevillelyh/neville/v1.0 and squashes the following commits: 0dc33ed [Neville Li] Fix spark-submit path in pyspark becec64 [Neville Li] Fix spark-submit path in spark-shell
Diffstat (limited to 'bin/spark-shell')
-rwxr-xr-xbin/spark-shell8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/spark-shell b/bin/spark-shell
index c158683ab3..850e9507ec 100755
--- a/bin/spark-shell
+++ b/bin/spark-shell
@@ -28,15 +28,15 @@ esac
# Enter posix mode for bash
set -o posix
+## Global script variables
+FWDIR="$(cd `dirname $0`/..; pwd)"
+
if [[ "$@" = *--help ]] || [[ "$@" = *-h ]]; then
echo "Usage: ./bin/spark-shell [options]"
- ./bin/spark-submit --help 2>&1 | grep -v Usage 1>&2
+ $FWDIR/bin/spark-submit --help 2>&1 | grep -v Usage 1>&2
exit 0
fi
-## Global script variables
-FWDIR="$(cd `dirname $0`/..; pwd)"
-
function main(){
if $cygwin; then
# Workaround for issue involving JLine and Cygwin