
Apache DolphinScheduler has added an automatic version upgrade feature since version 2.0.1. The official documentation provides a one-click upgrade script:
sh ./script/create-dolphinscheduler.sh
If it's a minor version update, simply executing the script suffices. However, upgrading across multiple major versions can still encounter issues. Here's a summarized guide.
mysqldump -u[username] -p[password] dolphinscheduler > dolphinscheduler_backup.sql
conf/
directory (e.g., application.yaml
, common.properties
)resources/
directory
Version Compatibility Check
Environment Check
Stop all services based on your deployment method. For cluster deployments, use:
sh ./script/stop-all.sh
[[2, 3]]
Modify configurations in ./bin/env/dolphinscheduler_env.sh
(replace {user}
and {password}
with your database credentials).
For MySQL:
export DATABASE=${DATABASE:-mysql}
export SPRING_PROFILES_ACTIVE=${DATABASE}
export SPRING_DATASOURCE_URL="jdbc:mysql://127.0.0.1:3306/dolphinscheduler?useUnicode=true&characterEncoding=UTF-8&useSSL=false"
export SPRING_DATASOURCE_USERNAME={user}
export SPRING_DATASOURCE_PASSWORD={password}
./tools/libs
[[3, 5]] sh ./tools/bin/upgrade-schema.sh
bin/env/install_config.conf
based on your deployment:
Pseudo-Cluster: Follow Pseudo-Cluster Deployment Guide
Cluster: Follow Cluster Deployment Guide
sh ./bin/start-all.sh
curl [http://localhost:12345/dolphinscheduler/actuator/health ](http://localhost:12345/dolphinscheduler/actuator/health ) # Check API health
tail -n 100 logs/api-server.log # Check logs for errors
mysql -u[username] -p[password] dolphinscheduler < dolphinscheduler_backup.sql
sql/create/