This topic describes how to perform basic operations on Kafka metadata. For example,
you can add a topic, remove a topic, and view topic details.
Add a topic
- Go to the Kafka Data Management page.
- Log on to the Alibaba Cloud EMR console.
- In the top navigation bar, select the region where your cluster resides and select a resource group based on your business requirements.
- Click the Metadata tab.
- In the left-side navigation pane, click Kafka Data Management.
- On the Kafka Data Management page, click Add Topic in the upper-right corner.
- In the Add Topic dialog box, configure parameters in the Basic Configuration section.
- Optional:In the Advanced Settings section, click in the upper-right corner to add key-value pair settings.
- Click OK.
You can click
Tasks to view the results.
- If Status is Successful, the topic is added.
- If Status is Failed, you can click View Details in the Action column to identify the cause.
Remove a topic
Notice
- You cannot remove built-in topics __consumer_offsets and _schemas.
- You cannot remove a topic if the cluster that is associated with the topic is released.
- Go to the Kafka Data Management page.
- Log on to the Alibaba Cloud EMR console.
- In the top navigation bar, select the region where your cluster resides and select a resource group based on your business requirements.
- Click the Metadata tab.
- In the left-side navigation pane, click Kafka Data Management.
- Find the topic you want to remove and click Delete in the Actions column.
- Click OK.
You can click
Tasks to view the results.
- If Status is Successful, the topic is added.
- If Status is Failed, you can click View Details in the Action column to identify the cause.
Update topic configurations
Notice
- You cannot update the configurations of built-in topics __consumer_offsets and _schemas.
- You cannot update the configurations of a topic if the cluster that is associated
with the topic is released.
- Go to the Kafka Data Management page.
- Log on to the Alibaba Cloud EMR console.
- In the top navigation bar, select the region where your cluster resides and select a resource group based on your business requirements.
- Click the Metadata tab.
- In the left-side navigation pane, click Kafka Data Management.
- Find the topic that contains the configurations you want to update and click Update in the Actions column.
- Modify configurations.
- Click OK.
You can click
Tasks to view the results.
- If Status is Successful, the topic is added.
- If Status is Failed, you can click View Details in the Action column to identify the cause.
View topic details
- Go to the Kafka Data Management page.
- Log on to the Alibaba Cloud EMR console.
- In the top navigation bar, select the region where your cluster resides and select a resource group based on your business requirements.
- Click the Metadata tab.
- In the left-side navigation pane, click Kafka Data Management.
- Find your topic and click Details in the Actions column.
You can view the following information about a topic: monitoring data, summary information,
data distribution, and consumer groups.
Edit multiple partitions at the same time
- Go to the Kafka Data Management page.
- Log on to the Alibaba Cloud EMR console.
- In the top navigation bar, select the region where your cluster resides and select a resource group based on your business requirements.
- Click the Metadata tab.
- In the left-side navigation pane, click Kafka Data Management.
- Click Batch Edit Partitions in the upper-right corner.
- In the Batch Edit Partitions dialog box, click Select Topic.
- In the Select Topic dialog box, select the cluster to which the partitions you want to edit belong from
the Cluster ID drop-down list.
- Select the topics that contain the partitions you want to edit and click OK.
- In the Batch Edit Partitions dialog box, specify Partitions after Adjustment(≥ Partitions).
- Click OK.
You can click
Tasks to view the results.
- If Status is Successful, the topic is added.
- If Status is Failed, you can click View Details in the Action column to identify the cause.