sh ./script/stop-all.sh
修改conf/datasource.properties中的下列属性
如果选择 MySQL,请注释掉 PostgreSQL 相关配置(反之同理), 还需要手动添加 [ mysql-connector-java 驱动 jar ] 包到 lib 目录下,这里下载的是mysql-connector-java-5.1.47.jar,然后正确配置数据库连接相关信息
# 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 需要修改ip,本机localhost即可
spring.datasource.username=xxx 需要修改为上面的{user}值
spring.datasource.password=xxx 需要修改为上面的{password}值
执行数据库升级脚本
sh ./script/upgrade-dolphinscheduler.sh
conf/config/install_config.conf
配置内容单机部署请参照单机部署(Standalone)中的6.修改运行参数部分
集群部署请参照集群部署(Cluster)中的6.修改运行参数部分
创建worker分组在1.3.1版本和之前版本有了不同的设计
1、查询已备份的数据库,查看t_ds_worker_group表记录,重点看下id、name和ip_list三个字段
id | name | ip_list |
---|---|---|
1 | service1 | 192.168.xx.10 |
2 | service2 | 192.168.xx.11,192.168.xx.12 |
2、修改conf/config/install_config.conf中的workers参数
假设以下为要部署的worker主机名和ip的对应关系
主机名 | ip |
---|---|
ds1 | 192.168.xx.10 |
ds2 | 192.168.xx.11 |
ds3 | 192.168.xx.12 |
那么为了保持与之前版本worker分组一致,则需要把workers参数改为如下
#worker服务部署在哪台机器上,并指定此worker属于哪一个worker组
workers="ds1:service1,ds2:service2,ds3:service2"
1.3.1版本的worker不能同时属于多个worker分组,1.3.2是可以支持的 所以在1.3.1里面的workers="ds1:service1,ds1:service2"是不支持的, 在1.3.2可以设置workers="ds1:service1,ds1:service2"
`sh install.sh`