-
Notifications
You must be signed in to change notification settings - Fork 26
Could not crate .avro file #42
Comments
The internet is full of utilities to copy a byte array to a file (e.g. look at Apache commons-io |
If i have written the byte array to file and used spark-avro or avro-tools, it is not recognizing the file as avro. I have used same schema and byte array from jackson. Probably, i might have not pointed my question in right direction.. |
Probably. Maybe you could share some code, and explain what you were trying to do in more detail? |
@srini-daruna For better or worse, Avro dictates different format for files than network transport -- Avro files are supposed to have both prefix and pre-written schema as JSON. Currently this module only does "raw" encoded content, and does not have means to add wrapper stuff. Note, however, than when transferring Avro content over the wire, these are not supposed to be used. I don't know if spark (et al) would even allow use; perhaps they try to auto-detect which mode is used. |
Hi,
I created avro schema from class and got the byte array and want to write the data to avro file.
How can i do that.?
The text was updated successfully, but these errors were encountered: