我正在尝试在 2 个集群之间设置复制,但不希望更改主题名称。例如,如果我有一个名为“some_topic”的主题,它会自动复制到“cluster1.some_topic”,我很确定这可以完成,但还没有找到正确的配置来改变它
我当前的配置“mirrormaker2.properties”
# Sample MirrorMaker 2.0 top-level configuration file
# Run with ./bin/connect-mirror-maker.sh connect-mirror-maker.properties
# specify any number of cluster aliases
clusters = cluster1, cluster2
# connection information for each cluster
cluster1.bootstrap.servers = host1:9092,host2:9092,host3:9092
cluster2.bootstrap.servers = rep_host1:9092,rep_host2:9092,rep_host3:9092
# enable and configure individual replication flows
cluster1->cluster2.enabled = true
cluster1->cluster2.topics = sometopic.*
# customize as needed
# replication.policy.separator = _
# sync.topic.acls.enabled = false
# emit.heartbeats.interval.seconds = 5
Run Code Online (Sandbox Code Playgroud)
以供参考:
是否可以在状态栏中显示所选文本的字符长度?例如,在 PyCharm 以及许多其他编辑器中,它显示行和列的位置。然后,当您选择一些文本时,它会显示字符数。
然而在 VSCode 中,它只显示行和列的位置。
但是当我选择一段文字时,它就消失了。
这是我的安装中的错误,还是我必须启用它?