kafka连接器异常错误无法将http请求发送到终结点:http://localhost:8081/subjects/jdbc源帐户值/版本

3phpmpom  于 2021-06-07  发布在  Kafka
关注(0)|答案(1)|浏览(316)

我使用confluent platform 3.3作为kafka连接器,同时使用下面的命令启动连接器,

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

获取以下错误

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)

zookeeper正在kafka客户机2181端口上运行,我试图通过下面的命令启动schema

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

但是它没有显示任何错误信息,但是端口8081没有打开。请帮我解决这个问题。

vsikbqxv

vsikbqxv1#

如果您使用的是confluent platform 3.3,我建议您使用confluent cli,因为它是您已经下载的一部分,可以让您的生活更加简单。然后您可以轻松地检查组件的状态。

confluent start
confluent status kafka


请在此处查看此视频:https://vimeo.com/228505612
就您遇到的问题而言,我将检查schema registry的日志。您可以使用confluent cli实现这一点

confluent log schema-registry

相关问题