Managing Topics on Kafka UI
Scenario
On Kafka UI, you can view topic details, modify topic configurations, add topic partitions, delete topics, and view the number of data records produced in different time segments in real time.
- In security mode, Kafka UI does not authenticate the operation of viewing topic details. That is, any user can query topic information. To modify topic configurations, add topic partitions, or delete topics, ensure that the Kafka UI login user belongs to the kafkaadmin user group or grant the corresponding operation permissions to the user. Otherwise, the authentication fails.
- In non-security mode, Kafka UI does not authenticate any operation.
Viewing Topic Details
- Log in to Kafka UI. For details, see Accessing Kafka UI.
- Click Topics. The topic management page is displayed.
- In the Topic List area, you can view the names, status, number of partitions, creation time, and number of replicas of topics created in the current cluster.
- Click a topic name to view details about the topic and partition.
- In the Producer Message area, you can select Day, Week, or Month based on service requirements to view the number of data records produced in the topic.
Modifying the Topic Configuration
- Log in to Kafka UI. For details, see Accessing Kafka UI.
- Click Topics. The topic management page is displayed.
- In the Operation column of the item to be modified, choose Action > Config. On the displayed page, change the values of Key and Value of the topic. To add multiple items, click .
- Click OK.
Searching for a Topic
- Log in to Kafka UI. For details, see Accessing Kafka UI.
- Click Topics. The topic management page is displayed.
- In the upper right corner of the page, enter a topic name to search for the topic.
Adding a Partition
- Log in to Kafka UI. For details, see Accessing Kafka UI.
- Click Topics. The topic management page is displayed.
- In the Operation column of the item to be modified, choose Action > Alter. On the displayed page, modify the topic partition.
Currently, you can only add partitions to a cluster. That is, the number of partitions after modification must be greater than the number of original partitions.
- Click OK.
Deleting a Topic
- Log in to Kafka UI. For details, see Accessing Kafka UI.
- Click Topics. The topic management page is displayed.
- In the Operation column of the item to be modified, choose Action > Delete.
- In the confirmation dialog box that is displayed, click OK.
The default built-in topics cannot be deleted.
Viewing the Number of Data Records Produced
- Log in to Kafka UI. For details, see Accessing Kafka UI.
- Click Topics. The topic management page is displayed.
- In the Producer Message area, you can select Day, Week, or Month to view the number of data records produced in different time segments in the current cluster.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.