From 8cdfb08c47131ce3438e5faf1222af2039424324 Mon Sep 17 00:00:00 2001 From: Nick Pentreath Date: Thu, 12 Dec 2013 13:08:59 +0200 Subject: Fix 'IPYTHON=1 ./pyspark' throwing 'ValueError: Cannot run multiple SparkContexts at once' --- pyspark | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pyspark b/pyspark index 4941a36d0d..18f668ec97 100755 --- a/pyspark +++ b/pyspark @@ -59,8 +59,7 @@ if [ -n "$IPYTHON_OPTS" ]; then fi if [[ "$IPYTHON" = "1" ]] ; then - IPYTHON_OPTS=${IPYTHON_OPTS:--i} - exec ipython "$IPYTHON_OPTS" -c "%run $PYTHONSTARTUP" + exec ipython "$IPYTHON_OPTS" "$@" else exec "$PYSPARK_PYTHON" "$@" fi -- cgit v1.2.3