1.增加数据源——虚谷数据库#14890
Closed
mrliufox wants to merge 1 commit into
Closed
Conversation
mrliufox
requested review from
Amy0104,
SbloodyS,
caishunfeng,
ruanwenjun,
songjianet and
zhuangchong
as code owners
September 11, 2023 07:24
Member
|
Please using english in desc and title. Feel free to reopen this PR. @mrliufox |
This was referenced Sep 11, 2023
Closed
Closed
Author
|
desc和title已更新为英文。同时按照提示屏蔽了datax相关 |
Member
|
Please don't close a pr and submit a new PR same the closed, you should directly update your commits on this PR. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose of the pull request
Data source Added support for xugu database
Brief change log
1. dolphinscheduler-dao module add init sql
resources/sql add dolphinscheduler_xugu.sql
2. add xugu jdbc driver and upgrade mybatis-plus
2.1 root pom.xml add xugu jdbc driver and upgrade mybatis-plus version
2.2 dolphinscheduler-dao,dolphinscheduler-bom,dolphinscheduler-datasource-xugu pom.xml add xugu jdbc driver
2.3 dolphinscheduler-master,dolphinscheduler-worker resources/application.yml add setting as fllows:
2.4 dolphinscheduler-alert-server,dolphinscheduler-api resources/application.yml add setting as fllows:
2.5 dolphinscheduler-standalone-server resources/application.yml add setting as fllows:
2.6 dolphinscheduler-tools resources/application.yml add setting as fllows:
3. Compatible source code modification
3.1 dolphinscheduler-dao module update CommandMapper.xml with id=queryCommandPageBySlot
3.2 dolphinscheduler-dao update ResourceMapper.xml with id=baseSqlV2
4. Data source Added support for xugu database
4.1 dolphinscheduler-datasource-plugin
4.1.1 dolphinscheduler-datasource-plugin add dolphinscheduler-datasource-xugu module
4.1.1.1 dolphinscheduler-datasource-xugu add param package,Contains the following three classes
XuguConnectionParam、XuguDataSourceParamDTO、XuguDataSourceProcessor(Refer to mysql)
org.apache.dolphinscheduler.plugin.datasource.xugu.XuguConnectionParam
org.apache.dolphinscheduler.plugin.datasource.xugu.XuguDataSourceParamDTO
org.apache.dolphinscheduler.plugin.datasource.xugu.XuguDataSourceProcessor
4.1.1.2 dolphinscheduler-datasource-plugin add XuguDataSourceChannel、XuguDataSourceChannelFactory、XuguDataSourceClient(Refer to mysql)
org.apache.dolphinscheduler.spi.datasource.DataSourceChannel org.apache.dolphinscheduler.spi.datasource.DataSourceChannelFactory org.apache.dolphinscheduler.plugin.datasource.api.client.CommonDataSourceClient
4.1.3 dolphinscheduler-datasource-plugin/pom.xml
add module in dolphinscheduler-datasource-plugin/pom.xml
4.1.4 Constants.java
dolphinscheduler-commom/src/main/java/org/apache/dolphinscheduler/common.constants/DataSourceConstants.java
4.1.5 DbType.java
dolphinscheduler-spi/src/main/java/org/apache/dolphinscheduler/spi/enums/DbType.java
4.1.6 XuguSQLUpgradeDao.java
Added the initialization of the table structure of the support library hollow database
dolphinscheduler-tools/src/main/java/org/apache/dolphinscheduler/tools/datasource/dao/XuguSQLUpgradeDao.java
5 Front-end modification
Add the XUGU class code to each of the following four ts files
dolphinscheduler-ui/src/service/modules/data-source/types.ts
dolphinscheduler-ui/src/views/datasource/list/use-form.ts
dolphinscheduler-ui/src/views/projects/task/components/node/fields/use-datasource.ts
dolphinscheduler-ui/src/views/projects/task/components/node/fields/use-datax.ts
Verify this pull request