Search code examples
apache-kafkaapache-kafka-connectconfluent-platformconfluent-schema-registry

Kafka connector exception ERROR Failed to send HTTP request to endpoint: http://localhost:8081/subjects/jdbc-source-accounts-value/versions


I'm using Confluent Platform 3.3 as a Kafka connector , while starting the connector using the below command,

./bin/connect-standalone ./etc/schema-registry/connect-avro-standalone.properties ./etc/kafka-connect-jdbc/connect-jdbc-source.properties

getting the below error

ERROR Server died unexpectedly:  (io.confluent.kafka.schemaregistry.rest.SchemaRegistryMain:52)
org.apache.kafka.common.errors.TimeoutException: Timeout expired while fetching topic metadata
[2017-10-30 13:49:56,178] ERROR Failed to send HTTP request to endpoint: http://localhost:8081/subjects/jdbc-source-accounts-value/versions 
(io.confluent.kafka.schemaregistry.client.rest.RestService:156)

The Zookeeper is running in kafka client 2181 port, and I tried to start schema by the below command

 ./bin/schema-registry-start ./etc/schema-registry/schema-registry.properties &

But it didn't show any error messages but the port 8081 didn't up.Please help me to sort this out.


Solution

  • If you're using Confluent Platform 3.3, I would recommend using Confluent CLI since it's part of the download you've already got and makes life much simpler. Then you can easily check the status of the components.

    confluent start
    confluent status kafka
    

    etc

    Check out this vid here: https://vimeo.com/228505612

    In terms of the issue you've got, I would check the log for Schema Registry. You can do that with Confluent CLI

    confluent log schema-registry