Thanks Scott. Even I realized, default is binary encoding and not json.
On Thu, Jan 10, 2013 at 12:52 AM, Scott Carey scottca...@apache.org wrote:
In an Avro file, it always writes the schema in JSON form in the header.
There may be an old JIRA ticket considering the possibility of writing
Calling toJson() on a Schema will print it in json fom. However you most
likely do not want to invent your own file format for Avro data.
DataFileWriter which will manage the schema for you, along with compression,
metadata, and the ability to seek to the middle of the file.Additionally
it
Hi Scott,
I am able to find example for json encoding with DataFileWriter which
embedds schema, but unable to find DataFileWriter example for binary
encoding with schema.
Thanks
Pratyush
On Tue, Jan 8, 2013 at 2:56 PM, Scott Carey scottca...@apache.org wrote:
Calling toJson() on a Schema will