I am encountering a strange error in my development environment. I have a single zookeeper server, and a single Kafka broker. The daemon launches with no error messages and I have a listener on port 8081. If I stop the server with schema-registry-stop, subsequent attempts to start the daemon fail. The error log output is:
[2017-12-15 23:12:55,557] INFO Initializing KafkaStore with broker endpoints: PLAINTEXT://<kafka host>t:9092 (io.confluent.kafka.schemaregistry.storage.KafkaStore)
[2017-12-15 23:12:55,822] INFO Validating schemas topic <schema topic> (io.confluent.kafka.schemaregistry.storage.KafkaStore)
[2017-12-15 23:12:55,831] WARN The replication factor of the schema topic <schema topic> is less than the desired one of 3. If this is a production environment, it's crucial to add more brokers and increase the replication factor of the topic. (io.confluent.kafka.schemaregistry.storage.KafkaStore)
[2017-12-15 23:12:55,838] INFO Shutting down schema registry (io.confluent.kafka.schemaregistry.storage.KafkaSchemaRegistry)
[2017-12-15 23:12:55,839] ERROR Server died unexpectedly: (io.confluent.kafka.schemaregistry.rest.SchemaRegistryMain)
java.lang.NullPointerException
at io.confluent.kafka.schemaregistry.storage.KafkaStore.close(KafkaStore.java:366)
at io.confluent.kafka.schemaregistry.storage.KafkaSchemaRegistry.close(KafkaSchemaRegistry.java:720)
at io.confluent.kafka.schemaregistry.rest.SchemaRegistryRestApplication.onShutdown(SchemaRegistryRestApplication.java:111)
at io.confluent.kafka.schemaregistry.rest.SchemaRegistryRestApplication.setupResources(SchemaRegistryRestApplication.java:66)
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)
Is it possible that there are topic elements that are left null when the daemon performs it's cleanup routine? This bug report seems to be related:
Thanks in advance for any insight or troubleshooting assistance this mesage board can provide!