Create a RocketMQ data source
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
-
On the Dataphin homepage, click Management Center > Datasource Management in the top navigation bar.
-
On the Datasource page, click +Create Data Source.
-
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.
-
On the Create RocketMQ Data Source page, configure the parameters for connecting to the data source.
-
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 nameordata 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}.tableor${data source code}.schema.table. For more information, see Flink_SQL node development method.ImportantThe 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.
-
-
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.
NoteWe 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.
ImportantThe 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 .
ImportantConnectivity testing is not supported for RocketMQ data sources. Make sure that the connection information is correct before you save the configuration.
-
-
Click OK.