Skip to content

Commit

Permalink
Specify node type so that the log filename can get resolved (#16282)
Browse files Browse the repository at this point in the history
* specify node type so that the log filename can get resolved

* Update distribution/docker/druid.sh

Co-authored-by: Benedict Jin <[email protected]>

---------

Co-authored-by: Benedict Jin <[email protected]>
  • Loading branch information
fectrain and asdf2014 authored May 6, 2024
1 parent a2223ce commit ac42737
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions distribution/docker/druid.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ac42737

Please sign in to comment.