Confluent schema-Registry не запускается всегда - PullRequest
0 голосов
/ 13 июня 2018

Я набираю "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)

1 Ответ

0 голосов
/ 21 июня 2018

Попробуйте, установив в конфигурационном файле kafkastore.bootstrap.servers = PLAINTEXT: // localhost: 9092

...