public class ConfluentAvroSerializer extends AbstractAvroSerializer
This class provides a mechanism to utilize the Confluent Schema Registry (https://github.com/confluentinc/schema-registry) for Storm to (de)serialize Avro generic records across a topology. It assumes the schema registry is up and running completely independent of Storm.
Constructor and Description |
---|
ConfluentAvroSerializer(com.esotericsoftware.kryo.Kryo k,
Map stormConf)
A constructor with a signature that Storm can locate and use with kryo registration.
|
Modifier and Type | Method and Description |
---|---|
String |
getFingerprint(org.apache.avro.Schema schema) |
org.apache.avro.Schema |
getSchema(String fingerPrint) |
read, write
public ConfluentAvroSerializer(com.esotericsoftware.kryo.Kryo k, Map stormConf)
A constructor with a signature that Storm can locate and use with kryo registration. See Storm’s SerializationFactory class for details
k
- Unused but needs to be present for Serialization Factory to find this constructorstormConf
- The global storm configuration. Must define “avro.schemaregistry.confluent” to locate the confluent schema registry. Should in the form of “http://HOST:PORT”Copyright © 2019 The Apache Software Foundation. All Rights Reserved.