我使用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没有启动。请帮我解决这个问题。
如果您使用的是Confluent Platform 3.3,我建议使用Confluent CLI,因为它是您已经下载的一部分,让生活变得更加简单。然后,您可以轻松检查组件的状态。
confluent start
confluent status kafka
等等
看看这个视频:https://vimeo.com/228505612
就你遇到的问题而言,我会查看Schema Registry的日志。您可以使用Confluent CLI执行此操作
confluent log schema-registry