From 1a89fa414123a28cc6e7c7557ade4d19c8719f4c Mon Sep 17 00:00:00 2001 From: Giambattista Bloisi Date: Fri, 6 Feb 2026 10:22:13 +0100 Subject: [PATCH] Use libnss_wrapper to fake passwd entry also for starting tools like history server and spark connect. See [SPARK-43368] --- 4.1.1/scala2.13-java17-ubuntu/entrypoint.sh | 1 + 4.1.1/scala2.13-java21-ubuntu/entrypoint.sh | 1 + entrypoint.sh.template | 1 + 3 files changed, 3 insertions(+) diff --git a/4.1.1/scala2.13-java17-ubuntu/entrypoint.sh b/4.1.1/scala2.13-java17-ubuntu/entrypoint.sh index c576d8f..634e510 100755 --- a/4.1.1/scala2.13-java17-ubuntu/entrypoint.sh +++ b/4.1.1/scala2.13-java17-ubuntu/entrypoint.sh @@ -124,6 +124,7 @@ case "$1" in ;; *) + attempt_setup_fake_passwd_entry # Non-spark-on-k8s command provided, proceeding in pass-through mode... exec "$@" ;; diff --git a/4.1.1/scala2.13-java21-ubuntu/entrypoint.sh b/4.1.1/scala2.13-java21-ubuntu/entrypoint.sh index c576d8f..634e510 100755 --- a/4.1.1/scala2.13-java21-ubuntu/entrypoint.sh +++ b/4.1.1/scala2.13-java21-ubuntu/entrypoint.sh @@ -124,6 +124,7 @@ case "$1" in ;; *) + attempt_setup_fake_passwd_entry # Non-spark-on-k8s command provided, proceeding in pass-through mode... exec "$@" ;; diff --git a/entrypoint.sh.template b/entrypoint.sh.template index c576d8f..634e510 100644 --- a/entrypoint.sh.template +++ b/entrypoint.sh.template @@ -124,6 +124,7 @@ case "$1" in ;; *) + attempt_setup_fake_passwd_entry # Non-spark-on-k8s command provided, proceeding in pass-through mode... exec "$@" ;;