dolphinscheduler版本1.3 跨版本升级到3.0

按照官网的步骤升级,错误一堆,直接安装3.0也可以,就是升级就缺字段。不知道是不是我的原因,没记录错误。有错误的可以交流。

老版本嘛,MYSQL数据库,下面的更新也是mysql的。

1、下载官网bin文件

https://dlcdn.apache.org/dolphinscheduler/3.0.1/apache-dolphinscheduler-3.0.1-bin.tar.gz

https://archive.apache.org/dist/dolphinscheduler/2.0.0/apache-dolphinscheduler-2.0.0-bin.tar.gz

不要问为什么下载两个版本,问就是被坑出来的。

2、解压两个版本。

3、修复缺失文件

(1)/apache-dolphinscheduler-2.0.0-bin/sql/upgrade/2.0.0_schema/mysql/下面三个文件拷贝到

/apache-dolphinscheduler-3.0.1-bin/tools/sql/sql/upgrade/2.0.0_schema/mysql/

(2)/apache-dolphinscheduler-3.0.1-bin/tools/sql/sql/upgrade/2.0.0_schema/mysql/dolphinscheduler_dml.sql拷贝到 /apache-dolphinscheduler-3.0.1-bin/tools/sql/sql/upgrade/2.0.1_schema/mysql/

4、修改表结构语句

(1)/mnt/datadisk0/apps/apache-dolphinscheduler-3.0.1-bin/tools/sql/sql/upgrade/2.0.0_schema/mysql/dolphinscheduler_ddl.sql

找到t_ds_process_definition添加下面sql

alter table t_ds_process_definition_log add `execution_type` tinyint(4) DEFAULT '0' COMMENT 'execution_type 0:parallel,1:serial wait,2:serial discard,3:serial priority';
alter table t_ds_process_definition add `execution_type` tinyint(4) DEFAULT '0' COMMENT 'execution_type 0:parallel,1:serial wait,2:serial discard,3:serial priority';

(2)/apache-dolphinscheduler-3.0.1-bin/tools/sql/sql/upgrade/3.0.0_schema/mysql/dolphinscheduler_ddl.sql

--ALTER TABLE `t_ds_alert` ADD COLUMN `alert_type` int DEFAULT NULL COMMENT 'alert_type';
ALTER TABLE `t_ds_alert` change `alert_type` `alert_type` int DEFAULT NULL COMMENT 'alert_type';

(3)/mnt/datadisk0/apps/apache-dolphinscheduler-3.0.1-bin/tools/sql/sql/upgrade/2.0.0_schema/mysql/dolphinscheduler_ddl.sql

找到t_ds_process_instance 添加下面sql

alter table t_ds_process_instance add next_process_instance_id int(11) DEFAULT '0' COMMENT 'serial queue next processInstanceId';

5、修改时间参数

最坑的就是这个,恕我无知,8点后的任务依赖8点前的任务就会出问题,因为读出来的时间比北京时间少8小时,是昨天的。

/apache-dolphinscheduler-3.0.1-bin/bin/env/dolphinscheduler_env.sh

export SPRING_JACKSON_TIME_ZONE=${SPRING_JACKSON_TIME_ZONE:-GMT+8}
export SPRING_DATASOURCE_URL="jdbc:mysql://x.x.x.x:3306/dolphinscheduler3?&characterEncoding=UTF-8&allowMultiQueries=true&serverTimezone=GMT%2B8"

剩下的步骤按照官网来吧。

  • 2
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 9
    评论
评论 9
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值