Unable to start 3rd instance of Schema Registry

252 views
Skip to first unread message

SK

unread,
May 17, 2016, 7:25:52 PM5/17/16
to Confluent Platform
After multiple attempts for last 2 days, I am still unable to start third instance.

I am using latest Confluent 2.0.1 with 3 nodes, all running Zookeeper and Kafka.
I am able to start on two but third one fails (Error msg listed below).

Versions,

Kafka version : 0.9.0.1-cp1
zookeeper.version=3.4.6-1569965, built on 02/20/2014
java.version=1.7.0_101

[2016-05-17 22:24:57,166] INFO Kafka version : 0.9.0.1-cp1 (org.apache.kafka.common.utils.AppInfoParser:82)
[2016-05-17 22:24:57,166] INFO Kafka commitId : b315983658a9783b (org.apache.kafka.common.utils.AppInfoParser:83)
[2016-05-17 22:24:57,166] INFO Kafka commitId : b315983658a9783b (org.apache.kafka.common.utils.AppInfoParser:83)
[2016-05-17 22:24:57,167] INFO [kafka-store-reader-thread-_schemas], Starting  (io.confluent.kafka.schemaregistry.storage.KafkaStoreReaderThread:68)
[2016-05-17 22:24:57,299] INFO Wait to catch up until the offset of the last message at 2 (io.confluent.kafka.schemaregistry.storage.KafkaStore:225)
[2016-05-17 22:25:57,300] ERROR Error starting the schema registry (io.confluent.kafka.schemaregistry.rest.SchemaRegistryRestApplication:57)
io.confluent.kafka.schemaregistry.exceptions.SchemaRegistryInitializationException: Error initializing kafka store while initializing schema registry
        at io.confluent.kafka.schemaregistry.storage.KafkaSchemaRegistry.init(KafkaSchemaRegistry.java:166)
        at io.confluent.kafka.schemaregistry.rest.SchemaRegistryRestApplication.setupResources(SchemaRegistryRestApplication.java:55)
        at io.confluent.kafka.schemaregistry.rest.SchemaRegistryRestApplication.setupResources(SchemaRegistryRestApplication.java:37)
        at io.confluent.rest.Application.createServer(Application.java:109)
        at io.confluent.kafka.schemaregistry.rest.SchemaRegistryMain.main(SchemaRegistryMain.java:43)
Caused by: io.confluent.kafka.schemaregistry.storage.exceptions.StoreInitializationException: io.confluent.kafka.schemaregistry.storage.exceptions.StoreTimeoutException: KafkaStoreReaderThread failed to reach target offset within the timeout interval. targetOffset: 2, offsetReached: -1, timeout(ms): 60000
        at io.confluent.kafka.schemaregistry.storage.KafkaStore.init(KafkaStore.java:155)
        at io.confluent.kafka.schemaregistry.storage.KafkaSchemaRegistry.init(KafkaSchemaRegistry.java:164)
        ... 4 more
Caused by: io.confluent.kafka.schemaregistry.storage.exceptions.StoreTimeoutException: KafkaStoreReaderThread failed to reach target offset within the timeout interval. targetOffset: 2, offsetReached: -1, timeout(ms): 60000
        at io.confluent.kafka.schemaregistry.storage.KafkaStoreReaderThread.waitUntilOffset(KafkaStoreReaderThread.java:228)
        at io.confluent.kafka.schemaregistry.storage.KafkaStore.waitUntilKafkaReaderReachesLastOffset(KafkaStore.java:226)
        at io.confluent.kafka.schemaregistry.storage.KafkaStore.init(KafkaStore.java:153)

Thanks
S

Liquan Pei

unread,
May 18, 2016, 1:33:02 AM5/18/16
to confluent...@googlegroups.com
What is your kafkastore.connection.url configuration for the third schema registry instance? Can you try to set the kafkastore.init.timeout.ms to a larger value to see if that resolves your issue?

Thanks,
Liquan

--
You received this message because you are subscribed to the Google Groups "Confluent Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to confluent-platf...@googlegroups.com.
To post to this group, send email to confluent...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/confluent-platform/dcf39395-12f7-4a21-8e04-bcf16f5de349%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Liquan Pei | Software Engineer | Confluent | +1 413.230.6855
Download Apache Kafka and Confluent Platform: www.confluent.io/download

SK

unread,
May 18, 2016, 11:28:41 AM5/18/16
to Confluent Platform
My schema-registry.properties is,

port=8081
kafkastore.connection.url=Node.1.IP:2181,Node.2.IP:2181,Node.3.IP:2181
kafkastore.topic=_schemas
kafkastore.topic.replication.factor=3
debug=true


I have tried playing with timeout setting to no avail.
Reply all
Reply to author
Forward
0 new messages