|
|
@ -47,23 +47,22 @@ if [ ! -d "$DOLPHINSCHEDULER_LOG_DIR" ]; then |
|
|
|
mkdir $DOLPHINSCHEDULER_LOG_DIR |
|
|
|
mkdir $DOLPHINSCHEDULER_LOG_DIR |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
log=$DOLPHINSCHEDULER_HOME/$command-$HOSTNAME.out |
|
|
|
|
|
|
|
pid=$DOLPHINSCHEDULER_HOME/$command/pid |
|
|
|
pid=$DOLPHINSCHEDULER_HOME/$command/pid |
|
|
|
|
|
|
|
|
|
|
|
cd $DOLPHINSCHEDULER_HOME/$command |
|
|
|
cd $DOLPHINSCHEDULER_HOME/$command |
|
|
|
|
|
|
|
|
|
|
|
if [ "$command" = "api-server" ]; then |
|
|
|
if [ "$command" = "api-server" ]; then |
|
|
|
: |
|
|
|
log=$DOLPHINSCHEDULER_HOME/api-server/logs/$command-$HOSTNAME.out |
|
|
|
elif [ "$command" = "master-server" ]; then |
|
|
|
elif [ "$command" = "master-server" ]; then |
|
|
|
: |
|
|
|
log=$DOLPHINSCHEDULER_HOME/master-server/logs/$command-$HOSTNAME.out |
|
|
|
elif [ "$command" = "worker-server" ]; then |
|
|
|
elif [ "$command" = "worker-server" ]; then |
|
|
|
: |
|
|
|
log=$DOLPHINSCHEDULER_HOME/worker-server/logs/$command-$HOSTNAME.out |
|
|
|
elif [ "$command" = "alert-server" ]; then |
|
|
|
elif [ "$command" = "alert-server" ]; then |
|
|
|
: |
|
|
|
log=$DOLPHINSCHEDULER_HOME/alert-server/logs/$command-$HOSTNAME.out |
|
|
|
elif [ "$command" = "standalone-server" ]; then |
|
|
|
elif [ "$command" = "standalone-server" ]; then |
|
|
|
: |
|
|
|
log=$DOLPHINSCHEDULER_HOME/standalone-server/logs/$command-$HOSTNAME.out |
|
|
|
elif [ "$command" = "python-gateway-server" ]; then |
|
|
|
elif [ "$command" = "python-gateway-server" ]; then |
|
|
|
: |
|
|
|
log=$DOLPHINSCHEDULER_HOME/python-gateway-server/logs/$command-$HOSTNAME.out |
|
|
|
else |
|
|
|
else |
|
|
|
echo "Error: No command named '$command' was found." |
|
|
|
echo "Error: No command named '$command' was found." |
|
|
|
exit 1 |
|
|
|
exit 1 |
|
|
|