anjia0532 commented on issue #17143:
URL: 
https://github.com/apache/dolphinscheduler/issues/17143#issuecomment-3143368178

   save as `ds_fix.sh`
   
   ```bash
   #!/bin/bash
   set -eo pipefail
   
   MODULES_PATH=(
   alert-server
   api-server
   master-server
   tools
   worker-server
   )
   
   DOLPHINSCHEDULER_HOME=${DOLPHINSCHEDULER_HOME:-/opt/dolphinscheduler/}
   
   for MODULE in ${MODULES_PATH[@]}; do
       MODULE_LIB_DIR="${DOLPHINSCHEDULER_HOME}/${MODULE}/libs"
       ls -lah $MODULE_LIB_DIR | grep dolphinscheduler-storage
       for jar in $(find $MODULE_LIB_DIR/* -name 
"dolphinscheduler-storage*.jar" -execdir echo {} ';'); do
           unlink $MODULE_LIB_DIR/$jar
           echo "unlink $MODULE_LIB_DIR/$jar"
       done
   
       for jar in $(find $DOLPHINSCHEDULER_HOME/libs/* -name 
"dolphinscheduler-storage*.jar" -execdir echo {} ';'); do
           ln -s $DOLPHINSCHEDULER_HOME/libs/$jar $MODULE_LIB_DIR/$jar
           echo "ln -s $DOLPHINSCHEDULER_HOME/libs/$jar $MODULE_LIB_DIR/$jar"
       done
       ls -lah $MODULE_LIB_DIR | grep dolphinscheduler-storage
   
       for cfg in $(ls $DOLPHINSCHEDULER_HOME/conf/ | grep "properties\|yaml"); 
do
           cp $DOLPHINSCHEDULER_HOME/conf/$cfg 
${DOLPHINSCHEDULER_HOME}/${MODULE}/conf/
           echo "cp $DOLPHINSCHEDULER_HOME/conf/$cfg 
${DOLPHINSCHEDULER_HOME}/${MODULE}/conf/"
       done
   done
   
   bash ${DOLPHINSCHEDULER_HOME}/$1/bin/start.sh
   ```
   
   ```
   chmod +x ds_fix.sh
   
   # run  worker module
   ./ds_fix.sh worker_server
   
   # run master module
   ./ds_fix.sh  master-server
   
   # ignore other module e.g. tools,api,alert
   ``


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to