我使用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端口运行,我尝试通过以下命令启动架构
./bin/schema-registry-start ./etc/schema-registry/schema-registry.properties &
但它没有显示任何错误消息,但端口8081没有启动。请帮我解决这个问题。
答案 0 :(得分:1)
如果您使用的是Confluent Platform 3.3,我建议您使用Confluent CLI,因为它已经是您已经下载的部分内容,让生活更加简单。然后,您可以轻松检查组件的状态。
confluent start
confluent status kafka
等
在此处查看此视频:https://vimeo.com/228505612
就您所遇到的问题而言,我会检查Schema Registry的日志。您可以使用Confluent CLI
执行此操作confluent log schema-registry