sh ./script/stop-all.sh
Modify the following properties in conf/datasource.properties.
If you use MySQL as the database to run DolphinScheduler, please comment out PostgreSQL related configurations, and add mysql connector jar into lib dir, here we download mysql-connector-java-8.0.16.jar, and then correctly config database connect information. You can download mysql connector jar here. Alternatively, if you use Postgres as database, you just need to comment out Mysql related configurations, and correctly config database connect information.
# postgre
#spring.datasource.driver-class-name=org.postgresql.Driver
#spring.datasource.url=jdbc:postgresql://localhost:5432/dolphinscheduler
# mysql
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
spring.datasource.url=jdbc:mysql://xxx:3306/dolphinscheduler?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true
spring.datasource.username=xxx
spring.datasource.password=xxx
Execute database upgrade script
sh ./script/create-dolphinscheduler.sh
conf/config/install_config.conf
File.1ใModify the workers config item in conf/config/install_config.conf file.
Imaging bellow are the machine worker service to be deployed:
hostname | ip |
---|---|
ds1 | 192.168.xx.10 |
ds2 | 192.168.xx.11 |
ds3 | 192.168.xx.12 |
To keep worker group config consistent with the previous version, we need to modify workers config item as below:
#worker service is deployed on which machine, and also specify which worker group this worker belongs to.
workers="ds1:service1,ds2:service2,ds3:service2"
`sh install.sh`