DolphinScheduler/script/create-dolphinscheduler.sh

22 lines
792 B
Bash
Raw Normal View History

2019-04-17 20:14:42 +08:00
#!/bin/bash
2019-04-25 19:04:09 +08:00
BIN_DIR=`dirname $0`
BIN_DIR=`cd "$BIN_DIR"; pwd`
DOLPHINSCHEDULER_HOME=$BIN_DIR/..
2019-04-25 19:04:09 +08:00
export JAVA_HOME=$JAVA_HOME
export DOLPHINSCHEDULER_CONF_DIR=$DOLPHINSCHEDULER_HOME/conf
export DOLPHINSCHEDULER_LIB_JARS=$DOLPHINSCHEDULER_HOME/lib/*
2019-04-25 19:04:09 +08:00
export DOLPHINSCHEDULER_OPTS="-server -Xmx1g -Xms1g -Xss512k -XX:+DisableExplicitGC -XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled -XX:LargePageSizeInBytes=128m -XX:+UseFastAccessorMethods -XX:+UseCMSInitiatingOccupancyOnly -XX:CMSInitiatingOccupancyFraction=70"
2019-04-25 19:04:09 +08:00
export STOP_TIMEOUT=5
CLASS=org.apache.dolphinscheduler.dao.upgrade.shell.CreateDolphinScheduler
2019-04-25 19:04:09 +08:00
exec_command="$DOLPHINSCHEDULER_OPTS -classpath $DOLPHINSCHEDULER_CONF_DIR:$DOLPHINSCHEDULER_LIB_JARS $CLASS"
2019-04-25 19:04:09 +08:00
cd $DOLPHINSCHEDULER_HOME
2019-04-25 19:04:09 +08:00
$JAVA_HOME/bin/java $exec_command