You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by fr...@apache.org on 2024/05/06 14:12:17 UTC
(druid) branch master updated: Specify node type so that the log filename can get resolved (#16282)
This is an automated email from the ASF dual-hosted git repository.
frankchen 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 ac42737242f Specify node type so that the log filename can get resolved (#16282)
ac42737242f is described below
commit ac42737242f041bc8ecd4456afbb5b42a63c85d3
Author: Sensor <fe...@outlook.com>
AuthorDate: Mon May 6 22:12:11 2024 +0800
Specify node type so that the log filename can get resolved (#16282)
* specify node type so that the log filename can get resolved
* Update distribution/docker/druid.sh
Co-authored-by: Benedict Jin <as...@apache.org>
---------
Co-authored-by: Benedict Jin <as...@apache.org>
---
distribution/docker/druid.sh | 3 +++
1 file changed, 3 insertions(+)
diff --git a/distribution/docker/druid.sh b/distribution/docker/druid.sh
index 1f026882743..35f04c93566 100755
--- a/distribution/docker/druid.sh
+++ b/distribution/docker/druid.sh
@@ -172,6 +172,9 @@ if [ -n "$DRUID_MAXDIRECTMEMORYSIZE" ]; then setJavaKey ${SERVICE} -XX:MaxDirect
# However this behavior is not part of the spec and is thus implementation specific
JAVA_OPTS="$(cat $SERVICE_CONF_DIR/jvm.config | xargs) $JAVA_OPTS"
+# Specify node type used for log4j2.xml
+JAVA_OPTS="-Ddruid.node.type=$SERVICE $JAVA_OPTS"
+
if [ -n "$DRUID_LOG_LEVEL" ]
then
sed -ri 's/"info"/"'$DRUID_LOG_LEVEL'"/g' $COMMON_CONF_DIR/log4j2.xml
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org