Ability to add hadoop config directory via environment variable (#3781)

This commit is contained in:
Nishant 2016-12-17 00:49:15 +05:30 committed by Fangjin Yang
parent 8cfcb95fbc
commit 93c34d3c3f

View File

@ -7,6 +7,7 @@
## DRUID_CONF_DIR - directory having druid config files, default=conf/druid ## DRUID_CONF_DIR - directory having druid config files, default=conf/druid
## DRUID_LOG_DIR - directory used to store druid logs, default=log ## DRUID_LOG_DIR - directory used to store druid logs, default=log
## DRUID_PID_DIR - directory used to store pid files, default=var/druid/pids ## 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)" usage="Usage: node.sh nodeType (start|stop|status)"
@ -38,7 +39,7 @@ case $command in
fi fi
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=$! nodeType_PID=$!
echo $nodeType_PID > $pid echo $nodeType_PID > $pid
echo "Started $nodeType node ($nodeType_PID)" echo "Started $nodeType node ($nodeType_PID)"