This topic describes how to create a migration task in the Message Queue for Apache RocketMQ console.
Background information
Preparations
Use the metadata export tool to export the metadata of the open source RocketMQ cluster as a file.
You can choose one of the following methods provided by Message Queue for Apache RocketMQ to export the metadata based on the network type of the open source RocketMQ server.
- Method 1: Download the script of the metadata export tool, upload the script to the RocketMQ
server, and then run the following command:
./bin/export.sh
Procedure: Download the script → Upload the script to the server → Run the
./bin/export.sh
command - Method 2: If the RocketMQ server can be accessed over the Internet, run the following command:
/bin/bash -c "$(curl -fsSL https://ons-migration.oss-cn-hangzhou.aliyuncs.com/export.sh)"
Procedure of method 1
Procedure of method 2
Create a migration task
- Log on to the Message Queue for Apache RocketMQ console.
- In the left-side navigation pane, click Migration to Cloud.
- In the top navigation bar, select a region, such as China (Hangzhou).
- On the Migration to Cloud page, click Create Task in the upper-left corner.
- Complete the Create Task wizard and click Next.