Updated on 2022-12-14 GMT+08:00

Creating a Topic on Kafka UI

Scenario

Create a topic on Kafka UI.

Creating a Topic

  1. Log in to Kafka UI. For details, see Accessing Kafka UI.
  2. Click Create Topic. On the displayed page, configure parameters by referring to Table 1 and click Create.

    Table 1 Topic information

    Parameter

    Description

    Remarks

    Topic

    Topic name, which can contain a maximum of 249 characters. Only letters, digits, hyphens (-), and underscores (_) are allowed.

    Example: kafka_ui

    Partitions

    Number of topic partitions. The value must be greater than or equal to 1. The default value is 3.

    -

    Replication Factor

    Replication factor of a topic. The value ranges from 1 to N. N indicates the number of brokers in the current cluster. The default value is 2.

    -

    • You can click Advanced Options to set advanced topic parameters based on service requirements. Generally, retain the default values.
    • In a cluster in security mode, the user who creates a topic must belong to the kafkaadmin user group. Otherwise, the topic cannot be created due to authentication failure.
    • In a cluster in non-security mode, no authentication is required for creating a topic. That is, any user can create a topic.