You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

启动Kafka Connect后持续告警且无法终止,疑配置文件异常

Kafka Connect分布式模式启动异常问题

执行命令 bin/connect-distributed.sh config/connect-distributed.properties 启动Kafka Connect分布式模式后,控制台持续输出重复警告信息,且使用Ctrl+C无法终止进程:

WARN [Worker clientId=connect-1, groupId=connect-cluster] 25 partitions have leader brokers without a matching listener, including [__consumer_offsets-9, __consumer_offsets-39, __consumer_offsets-11, __consumer_offsets-31, __consumer_offsets-13, __consumer_offsets-43, __consumer_offsets-29, __consumer_offsets-1, __consumer_offsets-41, __consumer_offsets-27] (org.apache.kafka.clients.NetworkClient:1056)
[2024-05-08 17:00:18,892] WARN [Worker clientId=connect-1, groupId=connect-cluster] 25 partitions have leader brokers without a matching listener, including [__consumer_offsets-9, __consumer_offsets-39, __consumer_offsets-11, __consumer_offsets-31, __consumer_offsets-13, __consumer_offsets-43, __consumer_offsets-29, __consumer_offsets-1, __consumer_offsets-41, __consumer_offsets-27] (org.apache.kafka.clients.NetworkClient:1056)
[2024-05-08 17:00:18,994] WARN [Worker clientId=connect-1, groupId=connect-cluster] 25 partitions have leader brokers without a matching listener, including [__consumer_offsets-9, __consumer_offsets-39, __consumer_offsets-11, __consumer_offsets-31, __consumer_offsets-13, __consumer_offsets-43, __consumer_offsets-29, __consumer_offsets-1, __consumer_offsets-41, __consumer_offsets-27] (org.apache.kafka.clients.NetworkClient:1056)
[2024-05-08 17:00:19,096] WARN [Worker clientId=connect-1, groupId=connect-cluster] 25 partitions have leader brokers without a matching listener, including [__consumer_offsets-9, __consumer_offsets-39, __consumer_offsets-11, __consumer_offsets-31, __consumer_offsets-13, __consumer_offsets-43, __consumer_offsets-29, __consumer_offsets-1, __consumer_offsets-41, __consumer_offsets-27] (org.apache.kafka.clients.NetworkClient:1056)
[2024-05-08 17:00:19,197] WARN [Worker clientId=connect-1, groupId=connect-cluster] 25 partitions have leader brokers without a matching listener, including [__consumer_offsets-9, __consumer_offsets-39, __consumer_offsets-11, __consumer_offsets-31, __consumer_offsets-13, __consumer_offsets-43, __consumer_offsets-29, __consumer_offsets-1, __consumer_offsets-41, __consumer_offsets-27] (org.apache.kafka.clients.NetworkClient:1056)

三台机器均使用以下connect-distributed.properties配置:

# A list of host/port pairs to use for establishing the initial connection to the Kafka cluster.
bootstrap.servers=192.168.245.128:9092,192.168.245.129:9092,192.168.245.130:9092

# unique name for the cluster, used in forming the Connect cluster group. Note that this must not conflict with consumer group IDs
group.id=connect-cluster

key.converter.schemas.enable=false
value.converter.schemas.enable=false

offset.storage.topic=connect-offsets
offset.storage.replication.factor=1
#offset.storage.partitions=25

config.storage.topic=connect-configs
config.storage.replication.factor=1

status.storage.topic=connect-status
status.storage.replication.factor=1
#status.storage.partitions=5

# Flush much faster than normal, which is useful for testing/debugging
offset.flush.interval.ms=10000

# These are provided to inform the user about the presence of the REST host and port configs 
# Hostname & Port for the REST API to listen on. If this is set, it will bind to the interface used to listen to requests.
#rest.host.name=
rest.port=8085

# The Hostname & Port that will be given out to other workers to connect to i.e. URLs that are routable from other servers.
#rest.advertised.host.name=
#rest.advertised.port=

# Examples: 
# plugin.path=/usr/local/share/java,/usr/local/share/kafka/plugins,/opt/connectors,
plugin.path=/home/hadoop/kafka_2.11-2.4.0/plugins

请问我的connect-distributed.properties配置是否存在问题?


内容的提问来源于stack exchange,提问作者YUChan

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.24 14:40:26