mirror of https://github.com/apache/druid.git
Ability to add hadoop config directory via environment variable (#3781)
This commit is contained in:
parent
8cfcb95fbc
commit
93c34d3c3f
|
@ -7,6 +7,7 @@
|
|||
## DRUID_CONF_DIR - directory having druid config files, default=conf/druid
|
||||
## DRUID_LOG_DIR - directory used to store druid logs, default=log
|
||||
## DRUID_PID_DIR - directory used to store pid files, default=var/druid/pids
|
||||
## HADOOP_CONF_DIR - directory used to store hadoop config files
|
||||
|
||||
usage="Usage: node.sh nodeType (start|stop|status)"
|
||||
|
||||
|
@ -38,7 +39,7 @@ case $command in
|
|||
fi
|
||||
fi
|
||||
|
||||
nohup java `cat $CONF_DIR/$nodeType/jvm.config | xargs` -cp $CONF_DIR/_common:$CONF_DIR/$nodeType:$LIB_DIR/* io.druid.cli.Main server $nodeType > $LOG_DIR/$nodeType.log &
|
||||
nohup java `cat $CONF_DIR/$nodeType/jvm.config | xargs` -cp $CONF_DIR/_common:$CONF_DIR/$nodeType:$LIB_DIR/*:$HADOOP_CONF_DIR io.druid.cli.Main server $nodeType > $LOG_DIR/$nodeType.log &
|
||||
nodeType_PID=$!
|
||||
echo $nodeType_PID > $pid
|
||||
echo "Started $nodeType node ($nodeType_PID)"
|
||||
|
|
Loading…
Reference in New Issue