mirror of https://github.com/apache/druid.git
druid-docker-image: add DRUID_DIRS_TO_CREATE variable to customize directories created on startup (#10591)
* druid-docker-image: add DRUID_DIRS_TO_CREATE variable to customize directories created on startup * address review comment * remove unintentional change
This commit is contained in:
parent
ba915b7f56
commit
2201ffa2f0
|
@ -148,5 +148,10 @@ then
|
|||
echo "$DRUID_LOG4J" >$COMMON_CONF_DIR/log4j2.xml
|
||||
fi
|
||||
|
||||
mkdir -p var/tmp var/druid/segments var/druid/indexing-logs var/druid/task var/druid/hadoop-tmp var/druid/segment-cache
|
||||
DRUID_DIRS_TO_CREATE=${DRUID_DIRS_TO_CREATE-'var/tmp var/druid/segments var/druid/indexing-logs var/druid/task var/druid/hadoop-tmp var/druid/segment-cache'}
|
||||
if [ -n "${DRUID_DIRS_TO_CREATE}" ]
|
||||
then
|
||||
mkdir -p ${DRUID_DIRS_TO_CREATE}
|
||||
fi
|
||||
|
||||
exec java ${JAVA_OPTS} -cp $COMMON_CONF_DIR:$SERVICE_CONF_DIR:lib/*: org.apache.druid.cli.Main server $@
|
||||
|
|
Loading…
Reference in New Issue