TT Bigdata TT Bigdata
首页
GitHub (opens new window)
JaneTTR

JaneTTR

数据酿造智慧,每一滴都是沉淀!
  • 开发环境

  • Ambari 编译

  • Bigtop 编译

  • Ambari 源码编译

  • 前端开发

  • 后端开发

  • 官方组件编译

  • 扩展组件编译

    • Sqoop编译

    • Ranger编译

    • Phoenix编译

    • Dolphinscheduler编译

      • version-3.2.2

        • Dolphinscheduler_3.2.2 编译
        • [O] Dolphinscheduler 版本适配改造(一)
        • [O] Dolphinscheduler 版本适配改造(二)
        • [B] Dolphinscheduler 版本适配改造(一)
        • [B] Dolphinscheduler 版本适配改造(二)
          • 第二步:补丁文件必须命名为 patch0-DATASOURCE-OPTIMIZED.diff 并放到指定目录
          • patch0-DATASOURCE-OPTIMIZED.diff 补丁内容
          • 完整的diff 文件
        • [B] Dolphinscheduler 版本适配改造(三)
    • Doris编译

    • Cloudbeaver编译

    • Atlas编译

    • Superset编译

    • Celeborn编译

    • Ozone编译

    • Impala编译

    • Trino编译

    • Paimon编译

    • Hudi编译

  • 源码编译
  • 扩展组件编译
  • Dolphinscheduler编译
  • version-3.2.2
JaneTTR
2025-05-06
目录
第二步:补丁文件必须命名为 patch0-DATASOURCE-OPTIMIZED.diff 并放到指定目录
patch0-DATASOURCE-OPTIMIZED.diff 补丁内容
完整的diff 文件

[B] Dolphinscheduler 版本适配改造(二)

# 第二步:补丁文件必须命名为 patch0-DATASOURCE-OPTIMIZED.diff 并放到指定目录

在执行依赖适配之前,请先将补丁文件命名为 patch0-DATASOURCE-OPTIMIZED.diff ,并放到 bigtop-packages/src/common/dolphinscheduler/ 目录下。这一步是自动 patch 流程能否生效的关键,切勿遗漏或随意更名!

补丁文件名和路径必须严格为 patch0-DATASOURCE-OPTIMIZED.diff,bigtop-packages/src/common/dolphinscheduler/

如上图所示

  • 文件名必须为 patch0-DATASOURCE-OPTIMIZED.diff,**
  • 路径为 bigtop-packages/src/common/dolphinscheduler/
  • 不要随意更名,不要放错目录,否则自动 patch 步骤会直接失效。**

# patch0-DATASOURCE-OPTIMIZED.diff 补丁内容

该补丁用于批量为 dolphinscheduler worker、master、api、alert-server 等模块补全 MySQL JDBC 驱动依赖,解决企业环境下的数据库连接问题。

# 完整的diff 文件

Subject: [PATCH] optimized: 增加mysql 驱动
---
Index: dolphinscheduler-worker/pom.xml
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/dolphinscheduler-worker/pom.xml b/dolphinscheduler-worker/pom.xml
--- a/dolphinscheduler-worker/pom.xml	(revision 2ec95b5c2c50d2882d40e07fb13cf38b5f0469b4)
+++ b/dolphinscheduler-worker/pom.xml	(date 1728530771659)
@@ -118,6 +118,13 @@
             <artifactId>zt-zip</artifactId>
         </dependency>

+        <dependency>
+            <groupId>mysql</groupId>
+            <artifactId>mysql-connector-java</artifactId>
+            <version>8.0.24</version>
+            <scope>compile</scope>
+        </dependency>
+
     </dependencies>

     <build>
Index: dolphinscheduler-alert/dolphinscheduler-alert-server/pom.xml
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/dolphinscheduler-alert/dolphinscheduler-alert-server/pom.xml b/dolphinscheduler-alert/dolphinscheduler-alert-server/pom.xml
--- a/dolphinscheduler-alert/dolphinscheduler-alert-server/pom.xml	(revision 2ec95b5c2c50d2882d40e07fb13cf38b5f0469b4)
+++ b/dolphinscheduler-alert/dolphinscheduler-alert-server/pom.xml	(date 1728530601997)
@@ -71,6 +71,13 @@
             <artifactId>spring-boot-starter-test</artifactId>
             <scope>test</scope>
         </dependency>
+
+        <dependency>
+            <groupId>mysql</groupId>
+            <artifactId>mysql-connector-java</artifactId>
+            <version>8.0.24</version>
+            <scope>compile</scope>
+        </dependency>
     </dependencies>

     <build>
Index: dolphinscheduler-api/pom.xml
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/dolphinscheduler-api/pom.xml b/dolphinscheduler-api/pom.xml
--- a/dolphinscheduler-api/pom.xml	(revision 2ec95b5c2c50d2882d40e07fb13cf38b5f0469b4)
+++ b/dolphinscheduler-api/pom.xml	(date 1728530716579)
@@ -236,6 +236,12 @@
             <groupId>org.apache.dolphinscheduler</groupId>
             <artifactId>dolphinscheduler-extract-alert</artifactId>
         </dependency>
+        <dependency>
+            <groupId>mysql</groupId>
+            <artifactId>mysql-connector-java</artifactId>
+            <version>8.0.24</version>
+            <scope>compile</scope>
+        </dependency>
     </dependencies>
     <build>
         <testResources>
Index: dolphinscheduler-master/pom.xml
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/dolphinscheduler-master/pom.xml b/dolphinscheduler-master/pom.xml
--- a/dolphinscheduler-master/pom.xml	(revision 2ec95b5c2c50d2882d40e07fb13cf38b5f0469b4)
+++ b/dolphinscheduler-master/pom.xml	(date 1728530744894)
@@ -289,6 +289,13 @@
             <groupId>org.springframework.cloud</groupId>
             <artifactId>spring-cloud-starter-kubernetes-client-config</artifactId>
         </dependency>
+
+        <dependency>
+            <groupId>mysql</groupId>
+            <artifactId>mysql-connector-java</artifactId>
+            <version>8.0.24</version>
+            <scope>compile</scope>
+        </dependency>
     </dependencies>

     <build>

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#DolphinScheduler#Bigtop#源码编译#MySQL
[B] Dolphinscheduler 版本适配改造(一)
[B] Dolphinscheduler 版本适配改造(三)

← [B] Dolphinscheduler 版本适配改造(一) [B] Dolphinscheduler 版本适配改造(三)→

最近更新
01
当前版本 2026/08
08-29
02
把 Ambari Server HA 稳稳地跑起来
08-17
03
从一次启用操作追到主备就绪
08-17
更多文章>
Theme by Vdoing | Copyright © 2017-2026 JaneTTR | MIT License
  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式