After you create a custom data source type, you can integrate it into Dataphin to prepare for subsequent integration development.
Prerequisites
A custom data source type exists. For more information, see:
Procedure
In the top navigation bar of the Dataphin homepage, choose Management Hub > Datasource Management.
On the Datasource page, click +Create Data Source.
In the Create Data Source page in the Custom Data Source Area, select the customized data source type.
The following example uses the custom mysql-test data source type, which is an RDBMS database type. The required data source information includes connection address, username, and password.
On the Create mysql-test Data Source page, configure the connection information.
Parameter
Description
Datasource Name
Enter the data source name. The data source name can contain Chinese characters, uppercase and lowercase letters, digits, underscores (_), and hyphens (-). It can be up to 64 characters in length.
Data Source Description
Enter a brief description of the data source. The string can be up to 128 characters in length.
Data Source Configuration
Configure the data source:
If the development mode is Basic mode, select Production Data Source.
If the development mode is Dev-Prod mode, you can configure the data source using the following methods:
Click Production + Development Data Source to configure data sources for both production and development environments.
Click Production Data Source to configure the production data source. After you create the production data source, click Development Data Source to configure the development environment data source.
NoteThe system supports configuring Production Data Source and Development Data Source as the same data source or as different data sources.
Tag (optional)
Select the tag categorization to which the data source belongs.
Connection Address
Enter the connection address of the database, such as
jdbc:mysql://host:port/dbname
.Username
Enter the username for logging on to the database.
Password
Enter the password for logging on to the database.
Select Default Resource Group, which is used to run tasks related to the current data source, including database SQL, offline database migration, and data preview.
Perform a Test Connection or directly click OK to save and complete the creation of the custom data source.
Click Test Connection, and the system will test whether the data source can connect normally with Dataphin. If you directly click OK, the system will automatically test the connection for all selected clusters. However, even if all selected clusters fail to connect, the data source can still be created normally.