Configuring a data source is a prerequisite for creating a data migration task. This topic describes how to create a Doris data source in OceanBase Migration Service (OMS).
Prerequisites
The IP address and port number of the host of the Doris database are obtained. By default, the query port of Doris FE is 9030.
OMS supports Doris data sources since V4.4.1. Apache Doris V2.1.x is supported. Doris can serve only as the source of a data migration task, and only Schema Migration and Full Migration are supported for the current link.
A Doris database user is created for data migration. OMS reads data only from the source and does not write data to the source. The user must have the query (
SELECT) privilege on the databases and tables to be migrated and the privilege to view the database and table schemas. We recommend that you create a dedicated migration user for OMS instead of using a business user. The GRANT statements of Doris vary with the version of the privilege model. For more information, see the official documentation of Doris.
Procedure
Log on to the OMS console.
In the left-side navigation pane, click Data Source Management.
On the Data Source Management page, click Add Data Source in the upper-right corner.
In the Add Data Source dialog box, select Doris for Data Source Type.
Configure the parameters.
ParameterDescriptionData Source Identifier A combination of letters, digits, and Chinese characters is recommended. The name cannot contain spaces and cannot exceed 32 characters in length. Notice
The data source identifier is globally unique in the OMS system.
Region Select the region where the data source is located from the drop-down list. The region is specified by the cm_regionparameter when OMS is deployed.Notice
- This parameter is displayed only in multi-region scenarios.
- Make sure that the mapping between the data source and the region is consistent. Otherwise, the migration performance may be poor.
Host IP The IP address of the host of the Doris database FE. Enter the address of a physical RDS instance. Do not enter the address of a middleware component. Port The port number of the Doris database FE. Default value: 9030. The port must contain only digits. Database Username The username of the Doris database user used for data migration. Database Password The password of the database user. Remarks (Optional) The remarks of the data source. The length cannot exceed 2,048 characters. Click Test Connection to verify the network connection between OMS and the Doris database, and the validity of the account and password.
After the test connection succeeds, click Create.
What to do next
After you create a Doris data source, you can use it as the source to create data migration tasks. The supported links are as follows:
- Doris -> OceanBase Database in MySQL-compatible mode
Note
The Doris data source currently supports only Schema Migration and Full Migration. Incremental Synchronization is not supported. Therefore, a Doris data source cannot be used as the source of a task that requires an incremental link.
To verify the data of a Doris link, create a data verification task from the Configure Verification Task entry in the upper-right corner of the data migration task details page. The Verification Type supports Full Verification and Row Count Verification. The Create Verification Task entry of the Data Verification module does not provide Doris as a source type. For more information, see [Data verification overview](../../710.data-validation/100.what-is-data-validation.md).