Connecting to Kafka on the Console
This section describes how a Kafka instance produces messages on the console. Specified messages can be sent to a Kafka instance to verify service logic.
Prerequisites
- Messages can be produced in a topic only when the instance is in the Running state.
- A topic has been created.
Producing Messages on the Console
- Log in to the console.
- Click in the upper left corner to select a region.
Select the region where your Kafka instance is located.
- Click in the upper left corner and choose Middleware > Distributed Message Service (for Kafka) to open the console of DMS for Kafka.
- Click the desired Kafka instance to view its details.
- In the navigation pane, choose Topics.
- Choose More > Creating Messages in the row that contains the desired topic. The Creating Messages dialog box is displayed.
- Set message parameters by referring to Table 1.
Table 1 Message parameters Parameter
Description
Message Body
Message content. 0 to 2000 characters.
Message Key
Message key.
Specify Partition
Indicates whether to enable the function of sending messages to a specified partition.
- Off: Messages are sent to partitions based on their key hash.
- On: Messages are sent to specified partitions. Requires the partition ID.
- Click OK.
You can view the sent messages on the Message Query page.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot