Custom schema storage
In order to use a non-default (i.e. non-BookKeeper) storage system for Pulsar schemas, you need to implement two Java interfaces: SchemaStorage and .
public interface SchemaStorageFactory {
SchemaStorage create(PulsarService pulsar) throws Exception;
In order to use your custom schema storage implementation, you’ll need to:
- Package the implementation in a JAR file.
- Add that jar to the folder in your Pulsar .
- Change the
schemaRegistryStorageClassName
configuration in broker.conf to your custom factory class (i.e. theSchemaStorageFactory
implementation, not the implementation).