Skip to content
Snippets Groups Projects
Commit ebcd2d68 authored by Neville Li's avatar Neville Li Committed by Patrick Wendell
Browse files

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
parent 442808a7
No related branches found
No related tags found
No related merge requests found
......@@ -27,7 +27,7 @@ SCALA_VERSION=2.10
if [[ "$@" = *--help ]] || [[ "$@" = *-h ]]; then
echo "Usage: ./bin/pyspark [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
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment