title: kafka connect failed to start with 'Uncaught exception in herder work thread.... position could be determined''
body: <p>I am using Kafka connect Version <code>confluentinc/cp-kafka-connect:5.1.1-1</code>.
  And kafka cluster <code>kafka_2.11-0.11.0.3</code> (3 brokers)</p>
  
  <p>This kafka cluster is working fine with old producer / consumer - using spark-stream.</p>
  
  <p>Now I tried to add kafka connect and I get the following error:</p>
  
  <pre><code>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
  </code></pre>
  
  <p>I can see that this topic exists. I can even write and read to this topic using the following commands:</p>
  
  <pre><code>./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
  </code></pre>
  
  <p>The kafka connect machine has connection to all of my brokers. </p>
  
  <p>But from some reason the kafka connect will not start. </p>
  
  <p>I will really appreciate any suggestion of how to investigate/solve it </p>
  
  <p><strong>UPDATES:</strong>
  I have tried to change the replica to 1 as suggested <a href="http://mail-archives.apache.org/mod_mbox/kafka-users/201810.mbox/%3CCABq8QVf+HM9zypf+7iV_DdpAifW60WOMeodAwqdMb1DbwF-wsQ@mail.gmail.com%3E" rel="nofollow noreferrer">here</a> but it didn't help</p>