Skip to content

Error initializing kafka store while initializing schema registry #146

Description

@sameera

I'm trying to up zk-single-kafka-single.yml as in the video https://www.youtube.com/watch?v=Zq8aMrRnvQE
I'm getting the following error:

zoo1                   | [2024-05-30 19:10:04,712] INFO Expiring session 0x10009b287530000, timeout of 18000ms exceeded (org.apache.zookeeper.server.ZooKeeperServer)
kafka-schema-registry  | [2024-05-30 19:11:01,614] ERROR Error starting the schema registry (io.confluent.kafka.schemaregistry.rest.SchemaRegistryRestApplication)
kafka-schema-registry  | io.confluent.kafka.schemaregistry.exceptions.SchemaRegistryInitializationException: Error initializing kafka store while initializing schema registry
kafka-schema-registry  | 	at io.confluent.kafka.schemaregistry.storage.KafkaSchemaRegistry.init(KafkaSchemaRegistry.java:321)
kafka-schema-registry  | 	at io.confluent.kafka.schemaregistry.rest.SchemaRegistryRestApplication.initSchemaRegistry(SchemaRegistryRestApplication.java:75)
kafka-schema-registry  | 	at io.confluent.kafka.schemaregistry.rest.SchemaRegistryRestApplication.configureBaseApplication(SchemaRegistryRestApplication.java:90)
kafka-schema-registry  | 	at io.confluent.rest.Application.configureHandler(Application.java:285)
kafka-schema-registry  | 	at io.confluent.rest.ApplicationServer.doStart(ApplicationServer.java:270)
kafka-schema-registry  | 	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73)
kafka-schema-registry  | 	at io.confluent.kafka.schemaregistry.rest.SchemaRegistryMain.main(SchemaRegistryMain.java:44)
kafka-schema-registry  | Caused by: io.confluent.kafka.schemaregistry.storage.exceptions.StoreInitializationException: io.confluent.kafka.schemaregistry.storage.exceptions.StoreException: Failed to write Noop record to kafka store.
kafka-schema-registry  | 	at io.confluent.kafka.schemaregistry.storage.KafkaStore.init(KafkaStore.java:151)
kafka-schema-registry  | 	at io.confluent.kafka.schemaregistry.storage.KafkaSchemaRegistry.init(KafkaSchemaRegistry.java:319)
kafka-schema-registry  | 	... 6 more
kafka-schema-registry  | Caused by: io.confluent.kafka.schemaregistry.storage.exceptions.StoreException: Failed to write Noop record to kafka store.
kafka-schema-registry  | 	at io.confluent.kafka.schemaregistry.storage.KafkaStore.getLatestOffset(KafkaStore.java:493)
kafka-schema-registry  | 	at io.confluent.kafka.schemaregistry.storage.KafkaStore.waitUntilKafkaReaderReachesLastOffset(KafkaStore.java:296)
kafka-schema-registry  | 	at io.confluent.kafka.schemaregistry.storage.KafkaStore.init(KafkaStore.java:149)
kafka-schema-registry  | 	... 7 more
kafka-schema-registry  | Caused by: java.util.concurrent.TimeoutException: Timeout after waiting for 60000 ms.
kafka-schema-registry  | 	at org.apache.kafka.clients.producer.internals.FutureRecordMetadata.get(FutureRecordMetadata.java:76)
kafka-schema-registry  | 	at org.apache.kafka.clients.producer.internals.FutureRecordMetadata.get(FutureRecordMetadata.java:30)
kafka-schema-registry  | 	at io.confluent.kafka.schemaregistry.storage.KafkaStore.getLatestOffset(KafkaStore.java:488)
kafka-schema-registry  | 	... 9 more
kafka-schema-registry exited with code 1

What could be wrong and what can I do to resolve it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions