sh ./script/stop-all.sh
If using MySQL as the database to run DolphinScheduler, please config it in ./bin/env/dolphinscheduler_env.sh
, change username and password to yours, and add MYSQL connector jar into lib dir ./tools/libs
, here we download mysql-connector-java-8.0.16.jar
, and then correctly configure database connection information. You can download MYSQL connector jar from here. Otherwise, PostgreSQL is the default database.
export DATABASE=${DATABASE:-mysql}
export SPRING_PROFILES_ACTIVE=${DATABASE}
export SPRING_DATASOURCE_DRIVER_CLASS_NAME=com.mysql.cj.jdbc.Driver
export SPRING_DATASOURCE_URL=jdbc:mysql://127.0.0.1:3306/dolphinscheduler?useUnicode=true&characterEncoding=UTF-8
export SPRING_DATASOURCE_USERNAME={user}
export SPRING_DATASOURCE_PASSWORD={password}
Execute database upgrade script:
sh ./tools/bin/upgrade-schema.sh
conf/config/install_config.conf
FileCreate worker group in 1.3.1 version has a different design:
t_ds_worker_group table
, mainly focus id, name and IP
three columns.id | name | ip_list |
---|---|---|
1 | service1 | 192.168.xx.10 |
2 | service2 | 192.168.xx.11,192.168.xx.12 |
conf/config/install_config.conf
file.Assume 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 configuration 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"
Workers in 1.3.1 can't belong to more than one worker group, but in 1.3.2 it's supported. So in 1.3.1 it's not supported when workers="ds1:service1,ds1:service2"
, and in 1.3.2 it's supported.
`sh install.sh`