汇合模式注册表并不总是启动

cetgtptt  于 2021-06-08  发布在  Kafka
关注(0)|答案(1)|浏览(512)

我输入“confluent start schema registry”,它将启动zookeeper、kafka并在模式注册表中失败。一分钟后,我再次输入命令,它发现zookeeper和kafka已经在运行,并且启动模式注册表没有问题。
我不能确定根本原因。这显然与时间有关。一旦它能提供所有的服务,一旦它在Kafka已经失败了,大部分时间都是这样的。
schema-registry.log中的错误消息

ERROR Server died unexpectedly (io.confluent.kafka.schemaregistry.rest.SchemaRegistryMain)
io.confluent.common.config.ConfigException: No supported Kafka endpoints are configured. Either kafkastore.bootstrap.servers must have at least one endpoint matching kafkastore.security.protocol or broker endpoints loaded from ZooKeeper must have at least one endpoint matching kafkastore.security.protocol.
    at io.confluent.kafka.schemaregistry.rest.SchemaRegistryConfig.endpointsToBootstrapServers(SchemaRegistryConfig.java:615)
    at io.confluent.kafka.schemaregistry.rest.SchemaRegistryConfig.bootstrapBrokers(SchemaRegistryConfig.java:555)
    at io.confluent.kafka.schemaregistry.storage.KafkaStore.<init>(KafkaStore.java:101)
    at io.confluent.kafka.schemaregistry.storage.KafkaSchemaRegistry.<init>(KafkaSchemaRegistry.java:139)
    at io.confluent.kafka.schemaregistry.rest.SchemaRegistryRestApplication.setupResources(SchemaRegistryRestApplication.java:59)
    at io.confluent.kafka.schemaregistry.rest.SchemaRegistryRestApplication.setupResources(SchemaRegistryRestApplication.java:41)
    at io.confluent.rest.Application.createServer(Application.java:165)
    at io.confluent.kafka.schemaregistry.rest.SchemaRegistryMain.main(SchemaRegistryMain.java:43)
eagi6jfj

eagi6jfj1#

通过在配置文件kafkastore.bootstrap.servers中设置来尝试=plaintext://localhost:9092

相关问题