From 8fab69bdad2289dc276a23b24bf2208347c36591 Mon Sep 17 00:00:00 2001 From: Mengyu Zhang Date: Sat, 18 Apr 2020 15:45:26 -0700 Subject: [PATCH] Update find-spark-home Use SPARK_PYTHON or 'python' to run find_spark_home.py --- bin/find-spark-home | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/bin/find-spark-home b/bin/find-spark-home index 617dbaa4fff86..e660493576a02 100755 --- a/bin/find-spark-home +++ b/bin/find-spark-home @@ -34,8 +34,5 @@ elif [ ! -f "$FIND_SPARK_HOME_PYTHON_SCRIPT" ]; then else # We are pip installed, use the Python script to resolve a reasonable SPARK_HOME # Default to standard python interpreter unless told otherwise - if [[ -z "$PYSPARK_DRIVER_PYTHON" ]]; then - PYSPARK_DRIVER_PYTHON="${PYSPARK_PYTHON:-"python"}" - fi - export SPARK_HOME=$($PYSPARK_DRIVER_PYTHON "$FIND_SPARK_HOME_PYTHON_SCRIPT") + export SPARK_HOME=$(${PYSPARK_PYTHON:-"python"} "$FIND_SPARK_HOME_PYTHON_SCRIPT") fi