Migrating Data from OBS to CSS
Scenario
CDM supports data migration between cloud services. This section describes how to use CDM to migrate data from OBS to Cloud Search Service. The procedure involves four steps:
Prerequisites
- You have obtained the domain name, port number, AK, and SK for accessing OBS.
- You have subscribed to Cloud Search Service and obtained the IP address and port number of the Cloud Search Service cluster.
Creating a CDM Cluster
- The flavor of the CDM cluster is selected based on the amount of data to be migrated. Generally, cdm.medium meets requirements for most migration scenarios.
- The CDM and Cloud Search Service clusters must be in the same VPC. In addition, it is recommended that the CDM cluster be in the same subnet and security group as the Cloud Search Service cluster.
- If the same subnet and security group cannot be used, for security reasons, ensure that a security group rule has been configured to allow the CDM cluster to access the Cloud Search Service cluster.
Creating a Cloud Search Service Link
- Click Job Management in the Operation column of the CDM cluster. On the page that is displayed, choose . The page for selecting a connector is displayed. See Figure 1.
- Select Cloud Search Service and click Next. On the page that is displayed, configure the CSS link parameters.
- Name: Enter a custom link name, for example, csslink.
- Elasticsearch Server List: Enter the IP address and port number of the Cloud Search Service cluster (cluster later than 5.x). The format is ip:port. Use semicolons to separate multiple addresses. For example, 192.168.0.1:9200;192.168.0.2:9200.
- Username and Password: Enter the username and password used for logging in to the Cloud Search Service cluster. The user must have the read and write permissions on the database.
Figure 2 Creating a CSS link
- Click Save. The Link Management page is displayed.
Creating an OBS Link
- On the Link Management tab page, click Create Link. On the page that is displayed, select HUAWEI CLOUD OBS, click Next, and configure the required link parameters.
- Name: Enter a custom link name, for example, obslink.
- OBS Server and Port: Enter the actual OBS address information.
- AK and SK: Enter the AK and SK used for logging in to OBS.
- Click Save. The Link Management page is displayed.
Creating a Migration Job
- Choose to create a job for exporting data from OBS to Cloud Search Service. Figure 3 Creating a job for migrating data from OBS to Cloud Search Service
- Job Name: Enter a unique name.
- Source Job Configuration
- Source Link Name: Select the obslink link created in Creating an OBS Link.
- Bucket Name: Select the bucket from which the data is to be migrated.
- Source Directory/File: Set this parameter to the path of the data to be migrated. You can migrate all directories and files in the bucket.
- File Format: Select CSV for migrating files to a data table.
- Retain the default values of the optional parameters in Show Advanced Attributes. For details, see Source OBS Parameters.
- Destination Job Configuration
- Destination Link Name: Select the csslink link created in Creating a Cloud Search Service Link.
- Index: Select the Elasticsearch index of the data to be written. You can also enter a new index. CDM automatically creates the index on Cloud Search Service.
- Type: Select the Elasticsearch type of the data to be written. You can enter a new type. CDM automatically creates a type at the migration destination.
- Retain the default values of the optional parameters in Show Advanced Attributes. For details, see Destination Elasticsearch or CSS Parameters.
- Click Next. The Map Field page is displayed. CDM automatically matches the source and destination fields, as shown in Figure 4.
- If the field mapping is incorrect, you can drag the fields to adjust the mapping.
- If the type is automatically created at the migration destination, you need to configure the type and name of each field.
- CDM supports field conversion during the migration. For details, see Field Conversion.
- Click Next and set task parameters. Generally, you can retain the default values for all parameters. In this step, you can configure the following optional functions:
- Retry Upon Failure: If the job fails, you can determine whether to automatically retry the job. Retain the default value Never.
- Group: Select which group the job belongs to. The default group is DEFAULT. On the Job Management page, jobs can be displayed, started, or exported by group.
- Schedule Execution: To configure scheduled jobs, see Scheduling Job Execution. Retain the default value No.
- Concurrent Extractors: Enter the number of extractors to be executed concurrently. Retain the default value 1. The maximum number of concurrent extractors in a single job is 500.
- Write Dirty Data: Specify this parameter if data that fails to be processed or filtered out during job execution needs to be written to OBS for future viewing. Before writing dirty data, create an OBS link. Retain the default value No so that dirty data is not recorded.
- Delete Job After Completion: Retain the default value Do not delete.
- Click Save and Run. The Job Management page is displayed, on which you can view the job execution progress and result.
- After the job is successfully executed, in the Operation column of the job, click Historical Record to view the job's historical execution records and read/write statistics.
On the Historical Record page, click Log to view the job logs.
Last Article: Migrating Data from DDS to DWS
Next Article: Migrating Data from OBS to DLI


Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.