Toolkit to support serialization and deserialization in Avro format
This toolkit supports serialization and deserialization of messages in an Apache Avro format. It provides two operators, AvroToJSON
and JSONToAvro
, which respectively are used to convert an Avro message (with or without embedded schema) to a JSON string and a JSON string into an Avro message (or a block of Avro messages with embedded schema). Avro messages are in a binary format; hence they are represented as a Streams blob
type.
The toolkit contains examples on how to use the operators.
Download a release package from Releases .
Untar or unzip the archive into a directory of your choice.
Add this directory to the toolkit path of your Streams installation by either:
STREAMS_SPLPATH
with your toolkit directory-t
option to the Streams Compiler sc
commandSee Develop