From a28f7b658c60245fefd8bc90f4c120702ad76442 Mon Sep 17 00:00:00 2001 From: philwalk Date: Wed, 6 Aug 2025 09:48:43 -0600 Subject: [PATCH] suppress Windows SHELL env error message - SPARK-53149 --- bin/load-spark-env.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/load-spark-env.sh b/bin/load-spark-env.sh index 861ebbbcb7a33..8db58ad387e81 100644 --- a/bin/load-spark-env.sh +++ b/bin/load-spark-env.sh @@ -65,6 +65,6 @@ export SPARK_SCALA_VERSION=2.13 #fi # Append jline option to enable the Beeline process to run in background. -if [[ ( ! $(ps -o stat= -p $$) =~ "+" ) && ! ( -p /dev/stdin ) ]]; then +if [[ ( ! $(ps -o stat= -p $$ 2>/dev/null) =~ "+" ) && ! ( -p /dev/stdin ) ]]; then export SPARK_BEELINE_OPTS="$SPARK_BEELINE_OPTS -Djline.terminal=jline.UnsupportedTerminal" fi