I am using Kafka connect Version confluentinc/cp-kafka-connect:5.1.1-1
.
And kafka cluster kafka_2.11-0.11.0.3
(3 brokers)
This kafka cluster is working fine with old producer / consumer - using spark-stream.
Now I tried to add kafka connect and I get the following error:
ERROR Uncaught exception in herder work thread, exiting:
(org.apache.kafka.connect.runtime.distributed.DistributedHerder)
org.apache.kafka.common.errors.TimeoutException: Timeout of 60000ms expired before the position for partition kc-offsets-22 could be determined
I can see that this topic exists. I can even write and read to this topic using the following commands:
./kafka-console-producer.sh \
--broker-list `hostname`:9092 \
--topic kc-offsets \
--property "parse.key=true" \
./kafka-console-consumer.sh --zookeeper $KAFKA_ZOOKEEPER_CONNECT --topic kc-offsets --from-beginning --property print.key=true
The kafka connect machine has connection to all of my brokers.
But from some reason the kafka connect will not start.
I will really appreciate any suggestion of how to investigate/solve it
UPDATES: I have tried to change the replica to 1 as suggested here but it didn't help