This command modifies a topic.
Usage
topic modify --database-name NAME --name NAME [--new-name NEW_NAME] [--retention-ms MILLISECONDS] [--message-timestamp-type CreateTime|LogAppendTime] [--message-timestamp-before-max-ms MILLISECONDS] [--message-timestamp-after-max-ms MILLISECONDS]
Required Parameters
| The name of the database where the topic resides. |
| The name of the topic to be modified. |
Options
| This option lets you rename an existing topic. |
| The amount of time, in milliseconds, to keep an event record in the topic. When the retention period for a record expires, the records is deleted from the topic. |
| Determines how the event timestamp is set:
|
| If the message timestamp type is set to |
| If the message timestamp type is set to |
Example
To set the message timestamp type to LogAppendTime:
vcli: admin> topic modify --database-name kafkatopics --name mytopic --message-timestamp-type LogAppendTime