Adding a Topic to a Stream

Explains how to add a topic to a stream using either the Control System or the CLI.

Adding a Topic to a Stream Using the Control System

Procedure

  1. Log in to the Control System and go to the Topics tab in the stream information page.
  2. Click Add Topic in the All topics pane.
  3. Specify the name of the topic in the Topic Name field.
    A name can include alphanumeric characters and the following characters: . (dot), _ (underscore), and - (hyphen).
  4. Specify the number of partitions to use for the topic.
    After you create the topic, you can increase the number of partitions, but you cannot reduce the number. If the topic is associated with a stream for change log, you cannot modify the partitions after you create the topic.
  5. Click Add Topic to create the topic.

Adding a Topic to a Stream Using the CLI or the REST API

About this task

The basic command to create a topic is:

maprcli stream topic create -path <Stream Path> -topic <Topic Name> 

For complete reference information, see stream topic create.