kafka-connect分布式模式

时间:2017-02-15 12:49:09

标签: apache-kafka apache-kafka-connect

我正在尝试使用以下方式启动kafka-connect:

connect-distributed /etc/schema-registry/connect-avro-distributed.properties

,但后来我得到了:

[2017-02-15 12:45:35,962] INFO Instantiated task mysql-adventureworks-source-0 with version 3.1.2 of type io.confluent.connect.jdbc.source.JdbcSourceTask (org.apache.kafka.connect.runtime.Worker:264)
[2017-02-15 12:45:35,963] ERROR Failed to start task mysql-adventureworks-source-0 (org.apache.kafka.connect.runtime.Worker:280)
org.apache.kafka.common.config.ConfigException: Missing Schema registry url!
        at io.confluent.connect.avro.AvroConverter.configure(AvroConverter.java:64)
        at org.apache.kafka.connect.runtime.Worker.startTask(Worker.java:268)
        at org.apache.kafka.connect.runtime.distributed.DistributedHerder.startTask(DistributedHerder.java:757)
        at org.apache.kafka.connect.runtime.distributed.DistributedHerder.startWork(DistributedHerder.java:750)
        at org.apache.kafka.connect.runtime.distributed.DistributedHerder.handleRebalanceCompleted(DistributedHerder.java:708)
        at org.apache.kafka.connect.runtime.distributed.DistributedHerder.tick(DistributedHerder.java:204)
        at org.apache.kafka.connect.runtime.distributed.DistributedHerder.run(DistributedHerder.java:174)
        at java.lang.Thread.run(Thread.java:745)

显示架构网址。我也尝试使用以下方式启动它:

connect-distributed /etc/kafka/connect-distributed.properties

,它使用json格式,但我得到了同样的错误。

有什么想法吗?

1 个答案:

答案 0 :(得分:-1)

请启动指向正确的属性文件的架构注册表服务。应该可以。