Create a RocketMQ data source

更新时间: 2026-06-23 14:43:37

Create a RocketMQ data source to enable Dataphin to read business data from or write data to RocketMQ.

Background information

RocketMQ refers to Alibaba Cloud Message Queue for RocketMQ, a distributed message, event, and stream processing platform built on Apache RocketMQ. It provides low latency, high concurrency, high availability, and high reliability. Before you connect RocketMQ to Dataphin for data development, you must create a RocketMQ data source. For more information, see .

Permission policies

Only custom global roles with the Create Data Source permission and system roles such as super administrator, data source administrator, domain architect, and project administrator can create data sources.

Procedure

  1. On the Dataphin homepage, click Management Center > Datasource Management in the top navigation bar.

  2. On the Datasource page, click +Create Data Source.

  3. On the Create Data Source page, select RocketMQ in the Message Queue section.

    You can also find RocketMQ in the Recently Used section or search for it by keyword.

  4. On the Create RocketMQ Data Source page, configure the parameters for connecting to the data source.

    1. Configure the basic information of the data source.

      Parameter

      Description

      Datasource Name

      The name must meet the following requirements:

      • It can contain only Chinese characters, letters, digits, underscores (_), and hyphens (-).

      • It cannot exceed 64 characters in length.

      Datasource Code

      After you configure the data source code, you can reference tables in the data source in a Flink_SQL node by using the format data source code.table name or data source code.schema.table name. If you need to automatically access the data source in the corresponding environment based on the current environment, access it using the variable format ${data source code}.table or ${data source code}.schema.table. For more information, see Flink_SQL node development method.

      Important
      • The data source code cannot be modified after it is configured.

      • You can preview data on the object details page in the asset directory and asset checklist only after the data source code is configured.

      • In Flink SQL, only MySQL, Hologres, MaxCompute, Oracle, StarRocks, Hive, SelectDB, and GaussDB data warehouse service (DWS) data sources are currently supported.

      Data Source Description

      A brief description of the data source. It cannot exceed 128 characters.

      Data Source Configuration

      Select the data source configuration mode:

      • If your business data source uses separate production and development environments, select Production + Development Data Source.

      • If your business data source does not use separate environments, select Production Data Source.

    2. Configure the connection parameters between the data source and Dataphin.

      If you select Production + Development Data Source, configure the connection information for both environments. If you select Production Data Source, configure only the production connection information.

      Note

      We recommend that you configure separate data sources for production and development to achieve environment isolation. However, Dataphin also supports using the same data source with identical parameter values for both environments.

      Parameter

      Description

      Endpoint

      The endpoint of the RocketMQ instance. You can view the endpoint on the Instance Details page in the Message Queue for RocketMQ console.

      We recommend that you use the internal network endpoint under the TCP protocol client access point.

      Important

      The internal network endpoint is available only when the RocketMQ instance and the Dataphin instance are in the same region.

      Instance ID

      The ID of the RocketMQ instance. You can view the instance ID on the Instance Details page in the Message Queue for RocketMQ console.

      Access ID, Access Key

      The AccessKey ID and AccessKey Secret of the account to which the RocketMQ data source belongs. For information about how to obtain them, see .

      Important

      Connectivity testing is not supported for RocketMQ data sources. Make sure that the connection information is correct before you save the configuration.

  5. Click OK.

上一篇: Create a Kafka data source 下一篇: Create a DataHub data source
阿里云首页 智能数据建设与治理 Dataphin 相关技术圈