mirror of
https://github.com/bitnami/containers.git
synced 2026-10-17 18:44:24 +02:00
[bitnami/spark] Release 3.1.3-debian-11-r16 (#366)
Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>
This commit is contained in:
@@ -64,6 +64,9 @@ export SPARK_METRICS_ENABLED="${SPARK_METRICS_ENABLED:-false}"
|
||||
# System Users
|
||||
export SPARK_DAEMON_USER="spark"
|
||||
export SPARK_DAEMON_GROUP="spark"
|
||||
|
||||
# Paths
|
||||
export SPARK_INITSCRIPTS_DIR="/docker-entrypoint-initdb.d"
|
||||
EOF
|
||||
}
|
||||
|
||||
@@ -356,3 +359,39 @@ spark_initialize() {
|
||||
info "Detected mounted configuration file..."
|
||||
fi
|
||||
}
|
||||
|
||||
########################
|
||||
# Run custom initialization scripts
|
||||
# Globals:
|
||||
# SPARK_*
|
||||
# Arguments:
|
||||
# None
|
||||
# Returns:
|
||||
# None
|
||||
#########################
|
||||
spark_custom_init_scripts() {
|
||||
if [[ -n $(find "${SPARK_INITSCRIPTS_DIR}/" -type f -regex ".*\.sh") ]]; then
|
||||
info "Loading user's custom files from $SPARK_INITSCRIPTS_DIR ..."
|
||||
local -r tmp_file="/tmp/filelist"
|
||||
find "${SPARK_INITSCRIPTS_DIR}/" -type f -regex ".*\.sh" | sort >"$tmp_file"
|
||||
while read -r f; do
|
||||
case "$f" in
|
||||
*.sh)
|
||||
if [[ -x "$f" ]]; then
|
||||
debug "Executing $f"
|
||||
"$f"
|
||||
else
|
||||
debug "Sourcing $f"
|
||||
. "$f"
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
debug "Ignoring $f"
|
||||
;;
|
||||
esac
|
||||
done <$tmp_file
|
||||
rm -f "$tmp_file"
|
||||
else
|
||||
info "No custom scripts in $SPARK_INITSCRIPTS_DIR"
|
||||
fi
|
||||
}
|
||||
|
||||
@@ -23,3 +23,6 @@ am_i_root && ensure_user_exists "$SPARK_DAEMON_USER" --group "$SPARK_DAEMON_GROU
|
||||
|
||||
# Ensure Spark is initialized
|
||||
spark_initialize
|
||||
|
||||
# Run custom initialization scripts
|
||||
spark_custom_init_scripts
|
||||
@@ -45,7 +45,7 @@ Learn more about the Bitnami tagging policy and the difference between rolling t
|
||||
|
||||
* [`3.3`, `3.3-debian-11`, `3.3.0`, `3.3.0-debian-11-r10`, `latest` (3.3/debian-11/Dockerfile)](https://github.com/bitnami/bitnami-docker-spark/blob/3.3.0-debian-11-r10/3.3/debian-11/Dockerfile)
|
||||
* [`3.2`, `3.2-debian-11`, `3.2.2`, `3.2.2-debian-11-r2` (3.2/debian-11/Dockerfile)](https://github.com/bitnami/bitnami-docker-spark/blob/3.2.2-debian-11-r2/3.2/debian-11/Dockerfile)
|
||||
* [`3.1`, `3.1-debian-11`, `3.1.3`, `3.1.3-debian-11-r15` (3.1/debian-11/Dockerfile)](https://github.com/bitnami/bitnami-docker-spark/blob/3.1.3-debian-11-r15/3.1/debian-11/Dockerfile)
|
||||
* [`3.1`, `3.1-debian-11`, `3.1.3`, `3.1.3-debian-11-r16` (3.1/debian-11/Dockerfile)](https://github.com/bitnami/bitnami-docker-spark/blob/3.1.3-debian-11-r16/3.1/debian-11/Dockerfile)
|
||||
|
||||
Subscribe to project updates by watching the [bitnami/spark GitHub repo](https://github.com/bitnami/bitnami-docker-spark).
|
||||
|
||||
|
||||
Reference in New Issue
Block a user