简体   繁体   中英

kafka-connect distributed mode

I am trying to start kafka-connect using:

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

, but then I get:

[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)

The schema url is presented. I've also tried to start it using:

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

, which uses the json format, but I get the same error.

Any ideas ?

Please start Schema registry service pointing to the right property file. It should work.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM