Red Hat OpenShift Streams for Apache Kafka supports creating Topics through the user interface (UI) at console.redhat.com or via the command-line interface (CLI). To create a topic through the UI, do the following:

  1. Go to console.redhat.com and log in with your Red Hat account.
  2. On the Application Services landing page, select Streams for Apache Kafka→Kafka Instances.
  3. On the Kafka Instances page, click the name of a Kafka instance you created before.
  4. Select the Topics tab, click the Create Topic button, and follow the guided steps to define the topic details:
    1. Use songs as the topic name.
    2. Keep the number of partitions set to 1.
    3. Keep the default message retention values.
  5. Click Finish to create the topic.

Your topic will be listed when you return to the Topics tab. You can click the Topic name to view information about the topic (Figure 16).

Figure 16: Each topic has a page in the console showing its information, such as Topic name and Retention time.
Figure 16: Each topic has a page in the console showing its information, such as topic name and retention time.

Note that the replication factor for topics on OpenShift Streams for Apache Kafka is set to 3. This corresponds to the number of brokers in the Kafka instance, meaning that your data is replicated across all brokers in the Apache Kafka cluster.