Before you create a data migration or synchronization task, you must configure a data source. This topic describes how to create an ElasticSearch data source in OceanBase Migration Service (OMS) Community Edition.
Prerequisites
You have obtained the IP address and port number of the database.
A database user for data migration exists.
We recommend that you create a dedicated database user for each data migration task. This user must have the required privileges on the data. For more information, see Create a database user.
Procedure
Log in to the OMS Community Edition console.
In the left-side 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, set Data Source Type to ElasticSearch.
Configure the parameters.
Parameter Description Data Source Identifier We recommend that you use Chinese, English, and numbers to name the data source. It must not contain any spaces and cannot exceed 32 characters in length. Notice
The data source name is globally unique in OMS Community Edition.
Region The region to which the data source belongs, which is the value of the cm_regionparameter when you deploy OMS Community Edition.Notice
- The Region parameter is displayed only in multi-region environments.
- Make sure that the mappings between data sources and regions are consistent. Otherwise, the migration or synchronization performance may be poor.
Host IP Address The IP address of the host where the database is located. Port The port number of the host IP address. Database Username (Optional) The name of the user for data migration in the ElasticSearch database. Database Password (Optional) The password of the database user. Enable HTTPS Specifies whether to enable HTTPS. Database Properties/Values (Optional) The database properties and property values. This parameter is optional. Remarks (Optional) The remarks about the data source. Click Test Connection to verify the network connection between OMS Community Edition and the database as well as the validity of the username and password.
If the test connection is successful, click OK.