Skip to content

Commit 8a4ed40

Browse files
committed
[DOP-31004] Fix worker entrypoint
1 parent f0e7d17 commit 8a4ed40

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docker/entrypoint_worker.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@ fi
5151
# SPARK-43540: add current working directory into executor classpath
5252
SPARK_CLASSPATH="$SPARK_CLASSPATH:$PWD"
5353

54-
if ! [ -n ${SPARK_LOCAL_DIRS} ]; then
55-
CURRENT_DIR=$(mktemp -d)
56-
else
54+
if [ -n "${SPARK_LOCAL_DIRS}" ]; then
5755
# /var/data/spark-local-123,/var/data/spark-local-234 -> /var/data/spark-local-123
5856
CURRENT_DIR=${SPARK_LOCAL_DIRS%%,*}
57+
else
58+
CURRENT_DIR=$(mktemp -d)
5959
fi
6060

6161
# current dir should always be writable

0 commit comments

Comments
 (0)