Configuring a data source is a prerequisite for creating a data migration or data verification task. This topic describes how to create an Elasticsearch data source in OceanBase Migration Service (OMS).
Prerequisites
You have obtained the access address (IP or domain name) and port number of the Elasticsearch instance.
The version of the Elasticsearch instance must be within the supported range of OMS. Currently, V7.x (V7.6.0 and later), V8.x, and V9.x are supported.
You have created an Elasticsearch user for data migration and granted him/her the permission to read index metadata and document data. It is recommended that you create a dedicated migration user for OMS; using a business user is not advised. For details on permissions, see the "Permissions required when Elasticsearch is used as the source" section in User permissions.
If authentication or HTTPS access is enabled for the Elasticsearch instance, obtain the corresponding access credentials and certificate configuration in advance.
Procedure
Log in to the OMS console.
In the left navigation pane, click Data Source Management.
On the Data Source Management page, click New Data Source in the upper-right corner.
In the New Data Source dialog box, select Data Source Type as ElasticSearch.
Configure the parameters.
ParameterDescriptionData Source Identifier A combination of Chinese characters, numbers, and letters is recommended. The name must not contain spaces and cannot exceed 32 characters in length. Note
The data source identifier must be globally unique within the OMS system.
Region Select the region to which the data source belongs from the drop-down list (i.e., the cm_regionparameter configured during OMS deployment).Note
- This parameter is displayed only in multi-region scenarios.
- Ensure the mapping between data sources and regions remains consistent; otherwise, migration performance may suffer.
Elasticsearch Endpoint The access address of the Elasticsearch instance, in the format of IP or domain name:port. The port range is 1–65535. Multiple addresses should be separated by commas (,). Database Username (Optional) The username for accessing the Elasticsearch instance. Database password (Optional) The password for accessing the Elasticsearch instance. Enable HTTPS When this switch is turned on, OMS accesses the Elasticsearch instance over HTTPS. Remarks (Optional) Remarks for the data source, with a length not exceeding 2048 characters. Note
The Database Username and Database Password fields are optional by default. If you specify one, you must also specify the other; otherwise, parameter validation will fail.
Click Test Connection to verify the network connection between OMS and the Elasticsearch instance, as well as the validity of the account and password.
After the test connection passes, click Create.
What to do next
After creating an Elasticsearch data source, you can use it as the source to create data migration tasks and data verification tasks. The supported link is Elasticsearch -> OceanBase Database MySQL-compatible mode.
Note
As tested, when the source is a newly created Elasticsearch cluster, the Verification Type only provides Full Verification and Row Count Verification; Incremental Verification is not available. For a complete list of supported verification capabilities, see [Data verification overview](../../710.data-validation/100.what-is-data-validation.md).