All Products
Search
Document Center

DataHub:Topic operations

Last Updated:Aug 26, 2026

Create a topic

  1. Log on to the DataHub console and select a region in the upper-left corner.

  2. In the left-side navigation pane, click Projects. On the Projects page, click the target project's name to view its details.

  3. On the project details page, click Create Topic in the upper-right corner. The Create Topic dialog box opens. Select a Creation Type.

    • Create Directly

      Note: For Shard Extension Mode, After this switch is turned on, the shard supports horizontal expansion, and no longer supports "merge" and "split". In the future, the number of shards can only be increased, but cannot be reduced. After this mode is enabled, you can use kafka to consume the current Topic.

    • Import MaxCompute Tables

      Enter parameters such as Project Name, Table Name, and Authentication Method. If the current project supports schema-based storage, you can manually specify the Schema.

      Authentication method descriptions:

      Parameter

      Description

      AccessKey

      Authenticates with an AccessKey pair, which consists of an AccessKey ID and an AccessKey secret.

      DataHub default role

      If you select this option, the datahub__access__role role is automatically granted to the project. This role has the following permission policy:

      {
        "Statement": [
          {
            "Action": [
              "odps:CreateInstance",
              "odps:CreateTable",
              "odps:Describe",
              "odps:Alter",
              "odps:Update"
            ],
            "Effect": "Allow",
            "Resource": [
              "*"
            ]
          }
        ],
        "Version": "1"
      }

      Custom role

      A user-defined role. You can view or create custom roles in the RAM console.

  4. Click Next Step, specify the remaining details, and then click Create.

View a topic

  1. Log on to the DataHub console and select a region in the upper-left corner.

  2. In the left-side navigation pane, click Projects. On the Projects page, click the target project's name to view its details.

  3. Click the Topic List tab. In the Actions column for the target topic, click View to open its details page.

Delete a topic

  1. Log on to the DataHub console and select a region in the upper-left corner.

  2. In the left-side navigation pane, click Projects. On the Projects page, click the target project's name to view its details.

  3. Click the Topic List tab. In the Actions column for the target topic, click Delete.

    Important

    After a topic is deleted, its data and associated resources, such as shards and connectors, are also permanently deleted and cannot be recovered. Proceed with caution.

Modify topic information

  1. Log on to the DataHub console and select a region in the upper-left corner.

  2. In the left-side navigation pane, click Projects. On the Projects page, click the target project's name to view its details.

  3. Click the Topic List tab. In the Actions column for the target topic, click View. On the details page, click the edit icon next to Lifecycle or Description to modify them.