Search in sources :

Example 1 with KafkaSchemaRegistry

use of io.confluent.kafka.schemaregistry.storage.KafkaSchemaRegistry in project schema-registry by confluentinc.

the class SchemaRegistryRestApplication method initSchemaRegistry.

protected KafkaSchemaRegistry initSchemaRegistry(SchemaRegistryConfig config) {
    KafkaSchemaRegistry kafkaSchemaRegistry = null;
    try {
        kafkaSchemaRegistry = new KafkaSchemaRegistry(config, new SchemaRegistrySerializer());
        kafkaSchemaRegistry.init();
    } catch (SchemaRegistryException e) {
        log.error("Error starting the schema registry", e);
        onShutdown();
        System.exit(1);
    }
    return kafkaSchemaRegistry;
}
Also used : SchemaRegistrySerializer(io.confluent.kafka.schemaregistry.storage.serialization.SchemaRegistrySerializer) KafkaSchemaRegistry(io.confluent.kafka.schemaregistry.storage.KafkaSchemaRegistry) SchemaRegistryException(io.confluent.kafka.schemaregistry.exceptions.SchemaRegistryException)

Aggregations

SchemaRegistryException (io.confluent.kafka.schemaregistry.exceptions.SchemaRegistryException)1 KafkaSchemaRegistry (io.confluent.kafka.schemaregistry.storage.KafkaSchemaRegistry)1 SchemaRegistrySerializer (io.confluent.kafka.schemaregistry.storage.serialization.SchemaRegistrySerializer)1