Schema-registry: Error "No supported Kafka endpoints are configured."

Created on 26 Mar 2018  路  7Comments  路  Source: confluentinc/schema-registry

I have both zookeeper and kafka (1.0.1) running. And, I guarantee that the kafka server is up.

I set schema registsry to look for both zookeeper and kafka as follows:

kafkastore.connection.url=localhost:2181
kafkastore.bootstrap.servers=localhost:9092

After I ran bin\windows\schema-registry-start.bat etc\schema-registry\schema-registry.properties, I got:

[2018-03-27 00:05:03,619] WARN Ignoring Kafka broker endpoint localhost:9092 that does not match the setting for kafkastore.security.protocol=PLAINTEXT (io.confluent.kafka.schemaregistry.rest.SchemaRegistryConfig:601)
[2018-03-27 00:05:03,620] ERROR Server died unexpectedly:  (io.confluent.kafka.schemaregistry.rest.SchemaRegistryMain:51)
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:614)
        at io.confluent.kafka.schemaregistry.rest.SchemaRegistryConfig.bootstrapBrokers(SchemaRegistryConfig.java:554)
        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:60)
        at io.confluent.kafka.schemaregistry.rest.SchemaRegistryRestApplication.setupResources(SchemaRegistryRestApplication.java:42)
        at io.confluent.rest.Application.createServer(Application.java:157)
        at io.confluent.kafka.schemaregistry.rest.SchemaRegistryMain.main(SchemaRegistryMain.java:43)

Which seems to be with PLAINTEXT protocol, I used the https://github.com/yahoo/kafka-manager to connect to the kafka server with PLAINTEXT setting and succeed. I have reasonable envidence to believe that it is not the case.

Most helpful comment

@phizaz set kafkastore.bootstrap.servers as PLAINTEXT://localhost:9092

All 7 comments

@phizaz set kafkastore.bootstrap.servers as PLAINTEXT://localhost:9092

I have postponed the project for now. Thank you for your response.

@charsyam - you made my day !!!!!!

useful

In case it helps someone: If you're running on SSL, then set the bootstrap connection as follows:

kafkastore.bootstrap.servers=SSL://<broker-host>:9093

In case it helps someone: If you're running on SSL, then set the bootstrap connection as follows:

kafkastore.bootstrap.servers=SSL://<broker-host>:9093

Thanks it worked for me!

Remove kafkastore.connection.url setting and set kafkastore.bootstrap.servers="PLAINTEXT://localhost:9092".

kafkastore.connection.url is deprecated.

Was this page helpful?
0 / 5 - 0 ratings