confluent kafka mirror create


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]


--link string                REQUIRED: Name of cluster link.
--replication-factor int32   Replication factor. (default 3)
--config strings             A comma-separated list of "key=value" pairs, or path to a configuration file containing a newline-separated list of "key=value" pairs.
--source-topic string        Name of the source topic to be mirrored over the cluster link. 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 might contain plaintext secrets.
-v, --verbose count   Increase verbosity (-v for warn, -vv for info, -vvv for debug, -vvvv for trace).


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 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