avro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Milind Vaidya <kava...@gmail.com>
Subject Avro Byte Blob Ser De
Date Tue, 11 Feb 2014 18:15:19 GMT
I am trying to serialize and read byte blob with Byte Schema as follows

static final org.apache.avro.Schema byteBlobSchema =

The writing part works fine and I can serialize data. The problem is with

GenericDatumReader rdata = new GenericDatumReader(byteBlobSchema);

DataFileReader dataFileReader = new DataFileReader(path, rdata);

GenericData.Record record = new GenericData.Record(byteBlobSchema);

while(dataFileReader.hasNext()) {



This gives error as: Not a record schema: "bytes"

There is something like

public static final Schema.Type

and I checked if that is the same thing I am getting if I call

Is there something I am missing ? Please let me know if I need to give more
details about writing the the records.

- Milind

View raw message