|
|
@ -31,18 +31,20 @@ BIN_DIR=`dirname $0` |
|
|
|
BIN_DIR=`cd "$BIN_DIR"; pwd` |
|
|
|
BIN_DIR=`cd "$BIN_DIR"; pwd` |
|
|
|
DOLPHINSCHEDULER_HOME=$BIN_DIR/.. |
|
|
|
DOLPHINSCHEDULER_HOME=$BIN_DIR/.. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
source ${BIN_DIR}/../conf/config/install_config.conf |
|
|
|
|
|
|
|
|
|
|
|
export JAVA_HOME=$JAVA_HOME |
|
|
|
export JAVA_HOME=$JAVA_HOME |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export DOLPHINSCHEDULER_CONF_DIR=$DOLPHINSCHEDULER_HOME/conf |
|
|
|
export DOLPHINSCHEDULER_CONF_DIR=$DOLPHINSCHEDULER_HOME/conf |
|
|
|
export DOLPHINSCHEDULER_LIB_JARS=$DOLPHINSCHEDULER_HOME/lib/* |
|
|
|
export DOLPHINSCHEDULER_LIB_JARS=$DOLPHINSCHEDULER_HOME/lib/* |
|
|
|
|
|
|
|
|
|
|
|
export DOLPHINSCHEDULER_OPTS="-server -Xmx1g -Xms1g -Xss512k -XX:+DisableExplicitGC -XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled -XX:LargePageSizeInBytes=128m -XX:+UseFastAccessorMethods -XX:+UseCMSInitiatingOccupancyOnly -XX:CMSInitiatingOccupancyFraction=70" |
|
|
|
export DOLPHINSCHEDULER_OPTS="-Xmx1g -Xms1g -Xss512k -XX:+DisableExplicitGC -XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled -XX:LargePageSizeInBytes=128m -XX:+UseFastAccessorMethods -XX:+UseCMSInitiatingOccupancyOnly -XX:CMSInitiatingOccupancyFraction=70 " |
|
|
|
export STOP_TIMEOUT=5 |
|
|
|
export STOP_TIMEOUT=5 |
|
|
|
|
|
|
|
|
|
|
|
CLASS=org.apache.dolphinscheduler.server.utils.RemoveZKNode |
|
|
|
CLASS=org.apache.zookeeper.ZooKeeperMain |
|
|
|
|
|
|
|
|
|
|
|
exec_command="$DOLPHINSCHEDULER_OPTS -classpath $DOLPHINSCHEDULER_CONF_DIR:$DOLPHINSCHEDULER_LIB_JARS $CLASS $rootNode" |
|
|
|
exec_command="$DOLPHINSCHEDULER_OPTS -classpath $DOLPHINSCHEDULER_CONF_DIR:$DOLPHINSCHEDULER_LIB_JARS $CLASS -server $zkQuorum rmr $rootNode" |
|
|
|
|
|
|
|
|
|
|
|
cd $DOLPHINSCHEDULER_HOME |
|
|
|
cd $DOLPHINSCHEDULER_HOME |
|
|
|
$JAVA_HOME/bin/java $exec_command |
|
|
|
$JAVA_HOME/bin/java $exec_command |
|
|
|