8.2. 连接器配置


使用 Mirrormaker 2.0 连接器配置在内部连接器中编配 Kafka 集群间数据的同步。

下表描述了连接器属性以及使用它们的连接器属性。

Expand
表 8.1. MirrorMaker 2.0 连接器配置属性
属性sourceConnectorcheckpointConnectorheartbeatConnector
admin.timeout.ms
管理任务的超时,如检测新主题。默认为 60000 (1 分钟)。

replication.policy.class
定义远程主题命名约定的策略。默认为 org.apache.kafka.connect.mirror.DefaultReplicationPolicy

replication.policy.separator
目标集群中用于主题命名的分隔符。默认为 . (点)。只有在 replication.policy.classDefaultReplicationPolicy 时才会使用。

consumer.poll.timeout.ms
轮询源集群时的超时。默认值为 1000 (1 秒)。

 
offset-syncs.topic.location
offset-syncs 主题的位置,可以是 (默认)或 目标集群

 
topic.filter.class
主题过滤器,以选择要复制的主题。默认为 org.apache.kafka.connect.mirror.DefaultTopicFilter

 
config.property.filter.class
主题过滤器,以选择要复制的主题配置属性。Default is org.apache.kafka.connect.mirror.DefaultConfigPropertyFilter.

  
config.properties.exclude
不应复制的主题配置属性。支持用逗号分开的属性名称和正则表达式。

  
offset.lag.max
远程分区同步前的最大允许(out-of-sync)offset lag。默认值为 100

  
offset-syncs.topic.replication.factor
内部偏移同步 主题的复制因素。默认为 3

  
refresh.topics.enabled
启用检查新主题和分区。默认为 true

  
refresh.topics.interval.seconds
主题刷新的频率。默认为 600 (10 分钟)。

  
replication.factor
新主题的复制因素。默认为 2

  
sync.topic.acls.enabled
启用从源集群的 ACL 同步。默认为 true。与 User Operator 不兼容。

  
sync.topic.acls.interval.seconds
ACL 同步的频率。默认为 600 (10 分钟)。

  
sync.topic.configs.enabled
启用从源集群中同步主题配置。默认为 true

  
sync.topic.configs.interval.seconds
主题配置同步的频率。默认 600 (10 分钟)。

  
checkpoints.topic.replication.factor
内部 检查点 主题的复制因素。默认为 3
 

 
emit.checkpoints.enabled
启用与目标集群的使用者偏移同步。默认为 true
 

 
emit.checkpoints.interval.seconds
消费者偏移同步的频率。默认值为 60 (1 分钟)。
 

 
group.filter.class
用于选择要复制的消费者组的组过滤器。Default is org.apache.kafka.connect.mirror.DefaultGroupFilter.
 

 
refresh.groups.enabled
启用检查新的消费者组。默认为 true
 

 
refresh.groups.interval.seconds
消费者组刷新的频率。默认为 600 (10 分钟)。
 

 
sync.group.offsets.enabled
启用使用者组偏移与目标集群 _consumer_offsets 主题的同步。默认为 false
 

 
sync.group.offsets.interval.seconds
消费者组偏移同步的频率。默认值为 60 (1 分钟)。
 

 
emit.heartbeats.enabled
在目标集群中启用连接检查。默认为 true
  

emit.heartbeats.interval.seconds
连接检查的频率。默认为 1( 1 秒)。
  

heartbeats.topic.replication.factor
内部 心跳 主题的复制因素。默认为 3
  

返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2025 Red Hat