File tree Expand file tree Collapse file tree 1 file changed +18
-1
lines changed
resource-managers/kubernetes/docker/src/main/dockerfiles/spark Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change 1919# echo commands to the terminal output
2020set -ex
2121
22+ if [ -f " /tmp/usersecret/CLUSTER_NAME" ]; then
23+ echo " DF env detected. Starting DF configuration"
24+ # common configuration
25+ source " $MAPR_HOME " /kubernetes/common.sh
26+
27+ READY_FLAG=$MAPR_KUBERNETES /ready
28+ CURRENT_FILE=" entrypoint.sh"
29+ COMPONENT_NAME=" SPARK DRIVER/EXECUTOR"
30+ cleanup_ready
31+ prologue $COMPONENT_NAME
32+ wait
33+ client_init spark
34+ echo " DF configuration complete"
35+ else
36+ echo " Not in DF env. Skipping DF configuration"
37+ fi
38+
2239# Check whether there is a passwd entry for the container UID
2340myuid=$( id -u)
2441mygid=$( id -g)
@@ -115,4 +132,4 @@ case "$1" in
115132esac
116133
117134# Execute the container CMD under tini for better hygiene
118- exec /usr/bin/ tini -s -- " ${CMD[@]} "
135+ exec /tini -s -- " ${CMD[@]} "
You can’t perform that action at this time.
0 commit comments