Skip to content

Commit

Permalink
SPARK-1134 bug with ipython prevents non-interactive use with spark; …
Browse files Browse the repository at this point in the history
…only call ipython if no command line arguments were supplied
  • Loading branch information
Diana Carroll committed Feb 27, 2014
1 parent 12bbca2 commit 0309cf9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/pyspark
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ if [ -n "$IPYTHON_OPTS" ]; then
IPYTHON=1
fi

if [[ "$IPYTHON" = "1" ]] ; then
# Only use ipython if no command line arguments were provided [SPARK-1134]
if [[ "$IPYTHON" = "1" && $# = 0 ]] ; then
exec ipython $IPYTHON_OPTS
else
exec "$PYSPARK_PYTHON" "$@"
Expand Down

0 comments on commit 0309cf9

Please sign in to comment.