我试图评估Kafka融合平台4.0版。但是,当我在kafka集群上启用ssl时,kafka连接无法启动。
详细记录如下:
[2017-12-18 04:38:55,747] ERROR Uncaught exception in herder work thread, exiting: (org.apache.kafka.connect.runtime.distributed.DistributedHerder:218)
org.apache.kafka.connect.errors.ConnectException: Timed out while checking for or creating topic(s) 'connect-offsets'. This could indicate a connectivity issue, unavailable topic partitions, or if this is your first use of the topic it may have taken too long to create.
at org.apache.kafka.connect.util.TopicAdmin.createTopics(TopicAdmin.java:243)
at org.apache.kafka.connect.storage.KafkaOffsetBackingStore$1.run(KafkaOffsetBackingStore.java:99)
at org.apache.kafka.connect.util.KafkaBasedLog.start(KafkaBasedLog.java:126)
at org.apache.kafka.connect.storage.KafkaOffsetBackingStore.start(KafkaOffsetBackingStore.java:109)
at org.apache.kafka.connect.runtime.Worker.start(Worker.java:144)
at org.apache.kafka.connect.runtime.AbstractHerder.startServices(AbstractHerder.java:100)
at org.apache.kafka.connect.runtime.distributed.DistributedHerder.run(DistributedHerder.java:205)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.kafka.common.errors.TimeoutException: Timed out waiting for a node assignment.
[2017-12-18 04:38:55,752] INFO Kafka Connect stopping (org.apache.kafka.connect.runtime.Connect:65)
[2017-12-18 04:38:55,753] INFO Stopping REST server (org.apache.kafka.connect.runtime.rest.RestServer:154)
[2017-12-18 04:38:55,761] INFO Stopped ServerConnector@51012d9c{HTTP/1.1}{0.0.0.0:8083} (org.eclipse.jetty.server.ServerConnector:306)
[2017-12-18 04:38:55,783] INFO Stopped o.e.j.s.ServletContextHandler@77a001d8{/,null,UNAVAILABLE} (org.eclipse.jetty.server.handler.ContextHandler:865)
[2017-12-18 04:38:55,786] INFO REST server stopped (org.apache.kafka.connect.runtime.rest.RestServer:165)
[2017-12-18 04:38:55,787] INFO Herder stopping (org.apache.kafka.connect.runtime.distributed.DistributedHerder:389)
[2017-12-18 04:39:00,788] INFO Herder stopped (org.apache.kafka.connect.runtime.distributed.DistributedHerder:409)
[2017-12-18 04:39:00,789] INFO Kafka Connect stopped (org.apache.kafka.connect.runtime.Connect:70)
我查过Kafka经纪人了,他们还在正常运转。
bin/confluent status
connect is [DOWN]
kafka-rest is [UP]
schema-registry is [DOWN]
kafka is [UP]
zookeeper is [UP]
我错过了什么额外的配置?
请告知?
1条答案
按热度按时间6pp0gazn1#
在kafka集群上启用安全选项后,需要为kafka connect workers启用等效的选项。
例如,对于基本ssl配置,您可能需要设置如下内容:
你的工人的配置(要像上面所示尝试使用confluent cli,此文件是
./etc/schema-registry/connect-avro-distributed.properties
)您可以在此处阅读有关如何设置kafka connect with security的更多信息:
https://docs.confluent.io/current/connect/security.html
并在此处查找有关连接工作程序的所有可用安全相关属性:
https://docs.confluent.io/current/connect/allconfigs.html