Skip to content

Commit d6f5446

Browse files
author
Ricardo Martinelli de Oliveira
committed
Follow suggestions in the PR
Fixes SPARK-23680
1 parent a97f074 commit d6f5446

File tree

1 file changed

+3
-2
lines changed
  • resource-managers/kubernetes/docker/src/main/dockerfiles/spark

1 file changed

+3
-2
lines changed

resource-managers/kubernetes/docker/src/main/dockerfiles/spark/entrypoint.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,14 @@
1717
#
1818

1919
# echo commands to the terminal output
20-
set -x
20+
set -ex
2121

2222
# Check whether there is a passwd entry for the container UID
2323
myuid=$(id -u)
2424
mygid=$(id -g)
25+
# turn off -e for getent because it will return error code in anonymous uid case
26+
set +e
2527
uidentry=$(getent passwd $myuid)
26-
2728
set -e
2829

2930
# If there is no passwd entry for the container UID, attempt to create one

0 commit comments

Comments
 (0)