File Exchange

image thumbnail

MATLAB Interface for Apache Avro

version 0.6.0 (44 KB) by Viswanath
MATLAB interface for Apache Avro files.

3 Downloads

Updated 08 Jul 2020

From GitHub

View license on GitHub

Apache Avro™ is a data serialization system. Avro provides a compact, fast, binary data format and simple integration with dynamic languages. Avro relies heavily on schemas. When data is stored in a file, the schema is stored with it, so that files may be processed later by any program.

The MATLAB interface for Apache Avro provides for reading and writing of Apache Avro files from within MATLAB. Functionality includes:

* Read and write of local Avro files
* Access to metadata of an Avro file

Cite As

Viswanath (2021). MATLAB Interface for Apache Avro (https://github.com/mathworks-ref-arch/matlab-avro), GitHub. Retrieved .

Comments and Ratings (1)

Simone Scaringi

Hi,

I am trying to get this to work on R2018b. I've gone through all the steps and placed the correct matlab-avro-sdk-0.2.jar full path into the javaclasspath.txt.

However when running the example
> data = randn(1e2,5); avrowrite('tmp.avro', data);

I get the following error message:
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/local/MATLAB/R2018b/java/jarext/slf4j/slf4j-log4j12.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/mnt/Work/main/toolbox/AVRO/Software/MATLAB/lib/jar/matlab-avro-sdk-0.2.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.

It appears the two bindings cannot work together. I tried to remove the slf4j-log4j12.jar but this resulted in other problems.
Is there a way to get around this?

Thanks
Simo

MATLAB Release Compatibility
Created with R2017b
Compatible with R2017b to R2018b
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Software/MATLAB

Software/MATLAB/app/system/+matlabavro

Software/MATLAB/app/system/+matlabavro/@AvroDeSerializer

Software/MATLAB/app/system/+matlabavro/@AvroHelper

Software/MATLAB/app/system/+matlabavro/@AvroSerializer

Software/MATLAB/app/system/+matlabavro/@CompressionType

Software/MATLAB/app/system/+matlabavro/@DataFileReader

Software/MATLAB/app/system/+matlabavro/@DataFileWriter

Software/MATLAB/app/system/+matlabavro/@Field

Software/MATLAB/app/system/+matlabavro/@GenericData

Software/MATLAB/app/system/+matlabavro/@GenericType

Software/MATLAB/app/system/+matlabavro/@Schema

Software/MATLAB/app/system/+matlabavro/@SchemaType

Software/MATLAB/test/unit