confluent kafka mirror create¶
Description¶
Create a mirror topic under the link. The destination topic name is required to be the same as the source topic name.
confluent kafka mirror create <source-topic-name> [flags]
Flags¶
--link string REQUIRED: The name of the cluster link to attach to the mirror topic.
--replication-factor int32 Replication factor. (default 3)
--config-file string Name of a file with additional topic configuration. Each property should be on its own line with the format: key=value.
--source-topic string Name of the topic to be mirrored over the cluster link, i.e. the source topic's name. Only required when there is a prefix configured on the link.
--cluster string Kafka cluster ID.
--context string CLI context name.
--environment string Environment ID.
Global Flags¶
-h, --help Show help for this command.
--unsafe-trace Equivalent to -vvvv, but also log HTTP requests and responses which may contain plaintext secrets.
-v, --verbose count Increase verbosity (-v for warn, -vv for info, -vvv for debug, -vvvv for trace).
Examples¶
Create a mirror topic “my-topic” under cluster link “my-link”:
confluent kafka mirror create my-topic --link my-link
Create a mirror topic with a custom replication factor and configuration file:
confluent kafka mirror create my-topic --link my-link --replication-factor 5 --config-file my-config.txt
Create a mirror topic “src_my-topic” where “src_” is the prefix configured on the link:
confluent kafka mirror create src_my-topic --link my-link --source-topic my-topic
See Also¶
- confluent kafka mirror - Manages cluster linking mirror topics.