Create a RabbitMQ data source
Create a RabbitMQ data source to enable Dataphin to read business data from or write data to RabbitMQ.
Permission requirements
Only users with the Create Data Source permission or the super administrator, data source administrator, architecture designer, or project administrator role can create data sources.
Procedure
-
In the top navigation bar of the Dataphin homepage, choose Management Center > Datasource Management.
-
On the Datasource page, click +Create Data Source.
-
On the Create Data Source page, select RabbitMQ in the Message Queue section.
If you recently used RabbitMQ, you can select it from the Recently Used section, or enter keywords in the search box to find it.
-
On the Create RabbitMQ Data Source page, configure the connection parameters.
-
Configure the basic information of the data source.
Parameter
Description
Datasource Name
The name must meet the following requirements:
-
The name can contain only Chinese characters, letters, digits, underscores (_), and hyphens (-).
-
The name can be up to 64 characters in length.
Datasource Code
Once configured, you can reference tables in this data source in a Flink_SQL node by using the
data source code.table nameordata source code.schema.table nameformat. To automatically access the data source that matches the current environment, use the variable format${data source code}.tableor${data source code}.schema.table. For more information, see Develop Flink_SQL nodes.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.
Version
Only version 3.6.5 is supported.
Data Source Description
A brief description of the data source. The description cannot exceed 128 characters.
Data Source Configuration
Select the data source configuration mode:
-
If the business data source is divided into production and development data sources, select Production + Development Data Source.
-
If the business data source is not divided into production and development data sources, select Production Data Source.
Tag
Tags help you categorize and label data sources. For more information, see Manage data source tags.
-
-
Configure the connection parameters.
If you selected Production + Development data source, configure the connection information for both environments. If you selected Production data source, configure the connection information for the production environment only.
NoteWe recommend that you configure separate data sources for the production and development environments to achieve environment isolation. However, you can also configure them as the same data source with identical parameter values.
Parameter
Description
Server Address
The IP address and port number of the RabbitMQ server. Only one server address is supported.
Username, Password
The username and password (or credential) used for authentication. Make sure the user has the required data permissions.
Virtual Host
The RabbitMQ virtual host. Default value:
/.
-
-
Click OK to create the RabbitMQ data source.