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`
|
2019-10-08 16:06:00 +08:00
|
|
|
DOLPHINSCHEDULER_HOME=$BIN_DIR/..
|
2019-04-25 19:04:09 +08:00
|
|
|
|
|
|
|
export JAVA_HOME=$JAVA_HOME
|
|
|
|
|
|
|
|
|
2019-10-08 16:06:00 +08:00
|
|
|
export DOLPHINSCHEDULER_CONF_DIR=$DOLPHINSCHEDULER_HOME/conf
|
|
|
|
export DOLPHINSCHEDULER_LIB_JARS=$DOLPHINSCHEDULER_HOME/lib/*
|
2019-04-25 19:04:09 +08:00
|
|
|
|
2019-10-08 16:06:00 +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
|
|
|
|
|
2019-09-29 19:39:01 +08:00
|
|
|
CLASS=org.apache.dolphinscheduler.dao.upgrade.shell.CreateDolphinScheduler
|
2019-04-25 19:04:09 +08:00
|
|
|
|
2019-10-08 16:06:00 +08:00
|
|
|
exec_command="$DOLPHINSCHEDULER_OPTS -classpath $DOLPHINSCHEDULER_CONF_DIR:$DOLPHINSCHEDULER_LIB_JARS $CLASS"
|
2019-04-25 19:04:09 +08:00
|
|
|
|
2019-10-08 16:06:00 +08:00
|
|
|
cd $DOLPHINSCHEDULER_HOME
|
2019-04-25 19:04:09 +08:00
|
|
|
$JAVA_HOME/bin/java $exec_command
|