From 2e5ef98df756654babe708ec9e7b31eb4460e4de Mon Sep 17 00:00:00 2001 From: Sensor Date: Mon, 15 Apr 2024 11:57:37 +0800 Subject: [PATCH 1/2] specify node type so that the log filename can get resolved --- distribution/docker/druid.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/distribution/docker/druid.sh b/distribution/docker/druid.sh index 1f0268827439..6b572ab7b425 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 From 53e1b2d11c27fdedda4bd13342beb4aebaf6e1ae Mon Sep 17 00:00:00 2001 From: Sensor Date: Mon, 15 Apr 2024 16:06:28 +0800 Subject: [PATCH 2/2] Update distribution/docker/druid.sh Co-authored-by: Benedict Jin --- distribution/docker/druid.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/distribution/docker/druid.sh b/distribution/docker/druid.sh index 6b572ab7b425..35f04c93566e 100755 --- a/distribution/docker/druid.sh +++ b/distribution/docker/druid.sh @@ -172,7 +172,7 @@ 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 +# Specify node type used for log4j2.xml JAVA_OPTS="-Ddruid.node.type=$SERVICE $JAVA_OPTS" if [ -n "$DRUID_LOG_LEVEL" ]