This is an automated email from the ASF dual-hosted git repository.
gwphua pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/druid.git
The following commit(s) were added to refs/heads/master by this push:
new 178898dc893 allow additional classpath via DRUID_ADDITIONAL_CLASSPATH
(#18447)
178898dc893 is described below
commit 178898dc893a65be4309e635003378b9337f725b
Author: JaeMyung Song <[email protected]>
AuthorDate: Fri Oct 3 11:00:25 2025 +0900
allow additional classpath via DRUID_ADDITIONAL_CLASSPATH (#18447)
Signed-off-by: jamangstangs <[email protected]>
---
distribution/docker/peon.sh | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/distribution/docker/peon.sh b/distribution/docker/peon.sh
index 26a31e6cc0a..708be314843 100755
--- a/distribution/docker/peon.sh
+++ b/distribution/docker/peon.sh
@@ -37,6 +37,9 @@
#
# - DRUID_CONFIG_COMMON -- full path to a file for druid 'common' properties
# - DRUID_CONFIG_${service} -- full path to a file for druid 'service'
properties
+# - DRUID_ADDITIONAL_CLASSPATH -- a list of colon-separated paths that will be
added to the classpath of druid processes.
+# These paths can include jars, additional
configuration folders (such as HDFS config), etc.
+# It is important to ensure that these paths
must exist in the environment druid runs in if they are not part of the
distribution.
# This script is very similar to druid.sh, used exclusively for the
kubernetes-overlord-extension.
# Specifically, it is used by K8sTaskAdapter and PodTemplateTaskAdapter to
start up Peon tasks.
@@ -165,7 +168,7 @@ mkdir -p ${TASK_DIR}; [ -n "$TASK_JSON" ] && echo
${TASK_JSON} | base64 -d | gzi
# Start peon using CliPeon, with variables `Main internal peon TASK_DIR
ATTEMPT_ID`
if [ -n "$TASK_ID" ]; then
# TASK_ID is only set from PodTemplateTaskAdapter
- exec bin/run-java ${JAVA_OPTS} -cp
$COMMON_CONF_DIR:$SERVICE_CONF_DIR:lib/*: org.apache.druid.cli.Main internal
peon "${TASK_DIR}" 1 --taskId "${TASK_ID}" "$@"
+ exec bin/run-java ${JAVA_OPTS} -cp
$COMMON_CONF_DIR:$SERVICE_CONF_DIR:lib/*:$DRUID_ADDITIONAL_CLASSPATH
org.apache.druid.cli.Main internal peon "${TASK_DIR}" 1 --taskId "${TASK_ID}"
"$@"
else
- exec bin/run-java ${JAVA_OPTS} -cp
$COMMON_CONF_DIR:$SERVICE_CONF_DIR:lib/*: org.apache.druid.cli.Main internal
peon "${TASK_DIR}" 1 "$@"
+ exec bin/run-java ${JAVA_OPTS} -cp
$COMMON_CONF_DIR:$SERVICE_CONF_DIR:lib/*:$DRUID_ADDITIONAL_CLASSPATH
org.apache.druid.cli.Main internal peon "${TASK_DIR}" 1 "$@"
fi
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]