Apache Avro
Avro is a row-oriented remote procedure call and data serialization framework developed within Apache's Hadoop project. It uses JSON for defining data types and protocols, and serializes data in a compact binary format. Its primary use is in Apache Hadoop, where it can provide both a serialization format for persistent data, and a wire format for communication between Hadoop nodes, and from client programs to the Hadoop services. Avro uses a schema to structure the data that is being encoded. It has two different types of schema languages: one for human editing (Avro IDL) and another which is more machine-readable based on JSON. It is similar to Thrift and Protocol Buffers, but does not require running a code-generation program when a schema changes (unless desired for statically-typed languages). Apache Spark SQL can access Avro as a data source.
Avro is a row-oriented remote procedure call and data serialization framework developed within Apache's Hadoop project. It uses JSON for defining data types and protocols, and serializes data in a compact binary format. Its primary use is in Apache Hadoop, where it can provide both a serialization format for persistent data, and a wire format for communication between Hadoop nodes, and from client programs to the Hadoop services. Avro uses a schema to structure the data that is being encoded. It has two different types of schema languages: one for human editing (Avro IDL) and another which is more machine-readable based on JSON. It is similar to Thrift and Protocol Buffers, but does not require running a code-generation program when a schema changes (unless desired for statically-typed languages). Apache Spark SQL can access Avro as a data source. == Avro Object Container File== An Avro Object Container File consists of: A file header, followed by one or more file data blocks. A file header consists of: Four bytes, ASCII 'O', 'b', 'j', followed by the Avro version number which is 1 (0x01) (Binary values 0x4F 0x62 0x6A 0x01). File metadata, including the schema definition. The 16-byte, randomly-generated sync marker for this file. For data blocks Avro specifies two serialization encodings: binary and JSON. Most applications will use the binary encoding, as it is smaller and faster. For debugging and web-based applications, the JSON encoding may sometimes be appropriate. { "namespace": "example.avro", "type": "record", "name": "User", "fields": [ {"name": "name", "type": "string"}, {"name": "favorite_number", "type": ["null", "int"]}, {"name": "favorite_color", "type": ["null", "string"]} ] } import avro.schema from avro.datafile import DataFileReader, DataFileWriter from avro.io import DatumReader, DatumWriter Need to know the schema to write. According to 1.8.2 of Apache Avro schema = avro.schema.parse(open("user.avsc", "rb").read()) writer = DataFileWriter(open("users.avro", "wb"), DatumWriter(), schema) writer.append({"name": "Alyssa", "favorite_number": 256}) writer.append({"name": "Ben", "favorite_number": 8, "favorite_color": "red"}) writer.close() File "users.avro" will contain the schema in JSON and a compact binary representation of the data: $ od -v -t x1z users.avro 0000000 4f 62 6a 01 04 14 61 76 72 6f 2e 63 6f 64 65 63 >Obj...avro.codec .null.avro.schem a..{"type": "rec ord", "name": "U ser", "namespace ": "example.avro ", "fields": [{" type": "string", "name": "name"} , {"type": ["int ", "null"], "nam e": "favorite_nu mber"}, {"type": ["string", "nul l"], "name": "fa vorite_color"}]} ......GTb.h...B. $.,.Alyssa.....B en....red.....GT b.h...B.$ Deserialization: The schema is embedded in the data file reader = DataFileReader(open("users.avro", "rb"), DatumReader()) for user in reader: print(user) reader.close() This outputs: {'name': 'Alyssa', 'favorite_number': 256, 'favorite_color': None} {'name': 'Ben', 'favorite_number': 8, 'favorite_color': 'red'} ==Avro IDL== In addition to supporting JSON for type and protocol definitions, Avro includes experimental support for an alternative interface description language (IDL) syntax known as Avro IDL. Previously known as GenAvro, this format is designed to ease adoption by users familiar with more traditional IDLs and programming languages, with a syntax similar to C/C++, Protocol Buffers and others. ==Logo== The original Apache Avro logo was from the defunct British aircraft manufacturer Avro (originally A.V. Roe and Company). The Apache Avro logo was updated to an original design in late 2023. ==See also== Comparison of data serialization formats Apache Thrift Protocol Buffers Etch (protocol) Internet Communications Engine MessagePack CBOR ==References== ==Further reading==
References
- Apache Avro: a New Format for Data Interchange . blog.cloudera.com . retrieved 2019-03-10 · retrieved 2019-03-09 · rev 1371118393
Cite this reference
MLA "Apache Avro: a New Format for Data Interchange . blog.cloudera.com . retrieved 2019-03-10." Apache Avro: a New Format for Data Interchange. 2019-03-09. https://en.wikipedia.org/w/index.php?oldid=1371118393. Accessed 24 November 2026.
Chicago "Apache Avro: a New Format for Data Interchange . blog.cloudera.com . retrieved 2019-03-10." Apache Avro: a New Format for Data Interchange. 2019-03-09. https://en.wikipedia.org/w/index.php?oldid=1371118393.
APA Apache Avro: a New Format for Data Interchange. (2019). Apache Avro: a New Format for Data Interchange . blog.cloudera.com . retrieved 2019-03-10. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1371118393
- Avro: 1.5.1 - ASF JIRA . retrieved April 13, 2016 · retrieved 2026-08-23 · rev 1371118393
Cite this reference
MLA "Avro: 1.5.1 - ASF JIRA . retrieved April 13, 2016." Avro: 1. 2026-08-23. https://en.wikipedia.org/w/index.php?oldid=1371118393. Accessed 24 November 2026.
Chicago "Avro: 1.5.1 - ASF JIRA . retrieved April 13, 2016." Avro: 1. 2026-08-23. https://en.wikipedia.org/w/index.php?oldid=1371118393.
APA Avro: 1. (2026). Avro: 1.5.1 - ASF JIRA . retrieved April 13, 2016. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1371118393
- [AVRO-533] .NET implementation of Avro - ASF JIRA . retrieved April 13, 2016 · retrieved 2026-08-23 · rev 1371118393
Cite this reference
MLA "[AVRO-533] .NET implementation of Avro - ASF JIRA . retrieved April 13, 2016." AVRO-533]. 2026-08-23. https://en.wikipedia.org/w/index.php?oldid=1371118393. Accessed 24 November 2026.
Chicago "[AVRO-533] .NET implementation of Avro - ASF JIRA . retrieved April 13, 2016." AVRO-533]. 2026-08-23. https://en.wikipedia.org/w/index.php?oldid=1371118393.
APA AVRO-533]. (2026). [AVRO-533] .NET implementation of Avro - ASF JIRA . retrieved April 13, 2016. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1371118393
- Supported Languages . retrieved April 13, 2016 · retrieved 2026-08-23 · rev 1371118393
Cite this reference
MLA "Supported Languages . retrieved April 13, 2016." Supported Languages. 2026-08-23. https://en.wikipedia.org/w/index.php?oldid=1371118393. Accessed 24 November 2026.
Chicago "Supported Languages . retrieved April 13, 2016." Supported Languages. 2026-08-23. https://en.wikipedia.org/w/index.php?oldid=1371118393.
APA Supported Languages. (2026). Supported Languages . retrieved April 13, 2016. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1371118393
- AvroEx . hexdocs.pm . retrieved October 18, 2017 · retrieved 2026-08-23 · rev 1371118393
Cite this reference
MLA "AvroEx . hexdocs.pm . retrieved October 18, 2017." AvroEx. 2026-08-23. https://en.wikipedia.org/w/index.php?oldid=1371118393. Accessed 24 November 2026.
Chicago "AvroEx . hexdocs.pm . retrieved October 18, 2017." AvroEx. 2026-08-23. https://en.wikipedia.org/w/index.php?oldid=1371118393.
APA AvroEx. (2026). AvroEx . hexdocs.pm . retrieved October 18, 2017. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1371118393
- Avrora — avrora v0.21.1 . hexdocs.pm . retrieved 2021-06-11 · retrieved 2021-06-10 · rev 1371118393
Cite this reference
MLA "Avrora — avrora v0.21.1 . hexdocs.pm . retrieved 2021-06-11." Avrora — avrora v0. 2021-06-10. https://en.wikipedia.org/w/index.php?oldid=1371118393. Accessed 24 November 2026.
Chicago "Avrora — avrora v0.21.1 . hexdocs.pm . retrieved 2021-06-11." Avrora — avrora v0. 2021-06-10. https://en.wikipedia.org/w/index.php?oldid=1371118393.
APA Avrora — avrora v0. (2021). Avrora — avrora v0.21.1 . hexdocs.pm . retrieved 2021-06-11. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1371118393
- avro package - github.com/hamba/avro - Go Packages . pkg.go.dev . retrieved 2023-07-04 · retrieved 2023-07-03 · rev 1371118393
Cite this reference
MLA "avro package - github.com/hamba/avro - Go Packages . pkg.go.dev . retrieved 2023-07-04." avro package - github. 2023-07-03. https://en.wikipedia.org/w/index.php?oldid=1371118393. Accessed 24 November 2026.
Chicago "avro package - github.com/hamba/avro - Go Packages . pkg.go.dev . retrieved 2023-07-04." avro package - github. 2023-07-03. https://en.wikipedia.org/w/index.php?oldid=1371118393.
APA avro package - github. (2023). avro package - github.com/hamba/avro - Go Packages . pkg.go.dev . retrieved 2023-07-04. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1371118393
- goavro . · retrieved 2026-08-23 · rev 1371118393
Cite this reference
MLA "goavro ." 2026-08-23. https://en.wikipedia.org/w/index.php?oldid=1371118393. Accessed 24 November 2026.
Chicago "goavro ." 2026-08-23. https://en.wikipedia.org/w/index.php?oldid=1371118393.
APA encyclopegia.org. (2026). goavro . Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1371118393
- Native Haskell implementation of Avro . Thomas M. DuBuisson, Galois, Inc . retrieved August 8, 2016 · retrieved 2026-08-23 · rev 1371118393
Cite this reference
MLA "Native Haskell implementation of Avro . Thomas M. DuBuisson, Galois, Inc . retrieved August 8, 2016." Native Haskell implementation of Avro. 2026-08-23. https://en.wikipedia.org/w/index.php?oldid=1371118393. Accessed 24 November 2026.
Chicago "Native Haskell implementation of Avro . Thomas M. DuBuisson, Galois, Inc . retrieved August 8, 2016." Native Haskell implementation of Avro. 2026-08-23. https://en.wikipedia.org/w/index.php?oldid=1371118393.
APA Native Haskell implementation of Avro. (2026). Native Haskell implementation of Avro . Thomas M. DuBuisson, Galois, Inc . retrieved August 8, 2016. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1371118393
- Pure JavaScript implementation of the Avro specification . GitHub . retrieved May 4, 2020 · retrieved 2026-08-23 · rev 1371118393
Cite this reference
MLA "Pure JavaScript implementation of the Avro specification . GitHub . retrieved May 4, 2020." Pure JavaScript implementation of the Avro specification. 2026-08-23. https://en.wikipedia.org/w/index.php?oldid=1371118393. Accessed 24 November 2026.
Chicago "Pure JavaScript implementation of the Avro specification . GitHub . retrieved May 4, 2020." Pure JavaScript implementation of the Avro specification. 2026-08-23. https://en.wikipedia.org/w/index.php?oldid=1371118393.
APA Pure JavaScript implementation of the Avro specification. (2026). Pure JavaScript implementation of the Avro specification . GitHub . retrieved May 4, 2020. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1371118393
- Getting Started (Python) . Apache Avro . retrieved 2023-07-04 · retrieved 2023-07-03 · rev 1371118393
Cite this reference
MLA "Getting Started (Python) . Apache Avro . retrieved 2023-07-04." Getting Started (Python). 2023-07-03. https://en.wikipedia.org/w/index.php?oldid=1371118393. Accessed 24 November 2026.
Chicago "Getting Started (Python) . Apache Avro . retrieved 2023-07-04." Getting Started (Python). 2023-07-03. https://en.wikipedia.org/w/index.php?oldid=1371118393.
APA Getting Started (Python). (2023). Getting Started (Python) . Apache Avro . retrieved 2023-07-04. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1371118393
- Apache Avro Releases . avro.apache.org . retrieved 2026-08-23 · retrieved 2026-08-22 · rev 1371118393
Cite this reference
MLA "Apache Avro Releases . avro.apache.org . retrieved 2026-08-23." Apache Avro Releases. 2026-08-22. https://en.wikipedia.org/w/index.php?oldid=1371118393. Accessed 24 November 2026.
Chicago "Apache Avro Releases . avro.apache.org . retrieved 2026-08-23." Apache Avro Releases. 2026-08-22. https://en.wikipedia.org/w/index.php?oldid=1371118393.
APA Apache Avro Releases. (2026). Apache Avro Releases . avro.apache.org . retrieved 2026-08-23. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1371118393
- avro: Avro is a serialization and RPC framework . · retrieved 2026-08-23 · rev 1371118393
Cite this reference
MLA "avro: Avro is a serialization and RPC framework ." 2026-08-23. https://en.wikipedia.org/w/index.php?oldid=1371118393. Accessed 24 November 2026.
Chicago "avro: Avro is a serialization and RPC framework ." 2026-08-23. https://en.wikipedia.org/w/index.php?oldid=1371118393.
APA encyclopegia.org. (2026). avro: Avro is a serialization and RPC framework . Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1371118393
- Apache Avro client library implementation in Rust . retrieved December 17, 2018 · retrieved 2026-08-23 · rev 1371118393
Cite this reference
MLA "Apache Avro client library implementation in Rust . retrieved December 17, 2018." Apache Avro client library implementation in Rust. 2026-08-23. https://en.wikipedia.org/w/index.php?oldid=1371118393. Accessed 24 November 2026.
Chicago "Apache Avro client library implementation in Rust . retrieved December 17, 2018." Apache Avro client library implementation in Rust. 2026-08-23. https://en.wikipedia.org/w/index.php?oldid=1371118393.
APA Apache Avro client library implementation in Rust. (2026). Apache Avro client library implementation in Rust . retrieved December 17, 2018. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1371118393
- Apache Avro 1.8.2 IDL . retrieved 2019-03-11 · retrieved 2019-03-10 · rev 1371118393
Cite this reference
MLA "Apache Avro 1.8.2 IDL . retrieved 2019-03-11." Apache Avro 1. 2019-03-10. https://en.wikipedia.org/w/index.php?oldid=1371118393. Accessed 24 November 2026.
Chicago "Apache Avro 1.8.2 IDL . retrieved 2019-03-11." Apache Avro 1. 2019-03-10. https://en.wikipedia.org/w/index.php?oldid=1371118393.
APA Apache Avro 1. (2019). Apache Avro 1.8.2 IDL . retrieved 2019-03-11. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1371118393
- The Avro Logo . avroheritagemuseum.co.uk . retrieved 2018-12-31 · retrieved 2018-12-30 · rev 1371118393
Cite this reference
MLA "The Avro Logo . avroheritagemuseum.co.uk . retrieved 2018-12-31." The Avro Logo. 2018-12-30. https://en.wikipedia.org/w/index.php?oldid=1371118393. Accessed 24 November 2026.
Chicago "The Avro Logo . avroheritagemuseum.co.uk . retrieved 2018-12-31." The Avro Logo. 2018-12-30. https://en.wikipedia.org/w/index.php?oldid=1371118393.
APA The Avro Logo. (2018). The Avro Logo . avroheritagemuseum.co.uk . retrieved 2018-12-31. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1371118393
- [AVRO-3908] Update project logo everywhere - ASF JIRA . apache.org . retrieved 2024-02-06 · retrieved 2024-02-05 · rev 1371118393
Cite this reference
MLA "[AVRO-3908] Update project logo everywhere - ASF JIRA . apache.org . retrieved 2024-02-06." AVRO-3908] Update project logo everywhere - ASF JIRA. 2024-02-05. https://en.wikipedia.org/w/index.php?oldid=1371118393. Accessed 24 November 2026.
Chicago "[AVRO-3908] Update project logo everywhere - ASF JIRA . apache.org . retrieved 2024-02-06." AVRO-3908] Update project logo everywhere - ASF JIRA. 2024-02-05. https://en.wikipedia.org/w/index.php?oldid=1371118393.
APA AVRO-3908] Update project logo everywhere - ASF JIRA. (2024). [AVRO-3908] Update project logo everywhere - ASF JIRA . apache.org . retrieved 2024-02-06. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1371118393
- 3 Reasons Why In-Hadoop Analytics are a Big Deal - Dataconomy . dataconomy.com . April 21, 2016. · retrieved 2026-08-23 · rev 1371118393
Cite this reference
MLA "3 Reasons Why In-Hadoop Analytics are a Big Deal - Dataconomy . dataconomy.com . April 21, 2016." Reasons Why In-Hadoop Analytics are a Big Deal - Dataconomy. 2026-08-23. https://en.wikipedia.org/w/index.php?oldid=1371118393. Accessed 24 November 2026.
Chicago "3 Reasons Why In-Hadoop Analytics are a Big Deal - Dataconomy . dataconomy.com . April 21, 2016." Reasons Why In-Hadoop Analytics are a Big Deal - Dataconomy. 2026-08-23. https://en.wikipedia.org/w/index.php?oldid=1371118393.
APA Reasons Why In-Hadoop Analytics are a Big Deal - Dataconomy. (2026). 3 Reasons Why In-Hadoop Analytics are a Big Deal - Dataconomy . dataconomy.com . April 21, 2016. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1371118393
- Apache Avro Specification: Object Container Files . avro.apache.org . retrieved 2024-09-08 · retrieved 2024-09-07 · rev 1371118393
Cite this reference
MLA "Apache Avro Specification: Object Container Files . avro.apache.org . retrieved 2024-09-08." Apache Avro Specification: Object Container Files. 2024-09-07. https://en.wikipedia.org/w/index.php?oldid=1371118393. Accessed 24 November 2026.
Chicago "Apache Avro Specification: Object Container Files . avro.apache.org . retrieved 2024-09-08." Apache Avro Specification: Object Container Files. 2024-09-07. https://en.wikipedia.org/w/index.php?oldid=1371118393.
APA Apache Avro Specification: Object Container Files. (2024). Apache Avro Specification: Object Container Files . avro.apache.org . retrieved 2024-09-08. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1371118393
- Apache Avro Specification: Encodings . avro.apache.org . retrieved 2024-09-08 · retrieved 2024-09-07 · rev 1371118393
Cite this reference
MLA "Apache Avro Specification: Encodings . avro.apache.org . retrieved 2024-09-08." Apache Avro Specification: Encodings. 2024-09-07. https://en.wikipedia.org/w/index.php?oldid=1371118393. Accessed 24 November 2026.
Chicago "Apache Avro Specification: Encodings . avro.apache.org . retrieved 2024-09-08." Apache Avro Specification: Encodings. 2024-09-07. https://en.wikipedia.org/w/index.php?oldid=1371118393.
APA Apache Avro Specification: Encodings. (2024). Apache Avro Specification: Encodings . avro.apache.org . retrieved 2024-09-08. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1371118393
- Apache Avro Getting Started (Python) . · retrieved 2026-08-23 · rev 1371118393
Cite this reference
MLA "Apache Avro Getting Started (Python) ." 2026-08-23. https://en.wikipedia.org/w/index.php?oldid=1371118393. Accessed 24 November 2026.
Chicago "Apache Avro Getting Started (Python) ." 2026-08-23. https://en.wikipedia.org/w/index.php?oldid=1371118393.
APA encyclopegia.org. (2026). Apache Avro Getting Started (Python) . Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1371118393
- Apache Avro Specification: Data Serialization . · retrieved 2026-08-23 · rev 1371118393
Cite this reference
MLA "Apache Avro Specification: Data Serialization ." 2026-08-23. https://en.wikipedia.org/w/index.php?oldid=1371118393. Accessed 24 November 2026.
Chicago "Apache Avro Specification: Data Serialization ." 2026-08-23. https://en.wikipedia.org/w/index.php?oldid=1371118393.
APA encyclopegia.org. (2026). Apache Avro Specification: Data Serialization . Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1371118393
- phunt. GitHub - phunt/avro-rpc-quickstart: Apache Avro RPC Quick Start. Avro is a subproject of Apache Hadoop . GitHub . · retrieved 2026-08-23 · rev 1371118393
Cite this reference
MLA "phunt. GitHub - phunt/avro-rpc-quickstart: Apache Avro RPC Quick Start. Avro is a subproject of Apache Hadoop . GitHub ." phunt. 2026-08-23. https://en.wikipedia.org/w/index.php?oldid=1371118393. Accessed 24 November 2026.
Chicago "phunt. GitHub - phunt/avro-rpc-quickstart: Apache Avro RPC Quick Start. Avro is a subproject of Apache Hadoop . GitHub ." phunt. 2026-08-23. https://en.wikipedia.org/w/index.php?oldid=1371118393.
APA phunt. (2026). phunt. GitHub - phunt/avro-rpc-quickstart: Apache Avro RPC Quick Start. Avro is a subproject of Apache Hadoop . GitHub . Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1371118393
- Supported Languages - Apache Avro - Apache Software Foundation . retrieved 2016-04-21 · retrieved 2016-04-20 · rev 1371118393
Cite this reference
MLA "Supported Languages - Apache Avro - Apache Software Foundation . retrieved 2016-04-21." Supported Languages - Apache Avro - Apache Software Foundation. 2016-04-20. https://en.wikipedia.org/w/index.php?oldid=1371118393. Accessed 24 November 2026.
Chicago "Supported Languages - Apache Avro - Apache Software Foundation . retrieved 2016-04-21." Supported Languages - Apache Avro - Apache Software Foundation. 2016-04-20. https://en.wikipedia.org/w/index.php?oldid=1371118393.
APA Supported Languages - Apache Avro - Apache Software Foundation. (2016). Supported Languages - Apache Avro - Apache Software Foundation . retrieved 2016-04-21. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1371118393
Cite this article
MLA
"Apache Avro." encyclopegia.org, 2026, https://encyclopegia.org/wiki/apache-avro. Accessed 24 November 2026.
Chicago
"Apache Avro." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/apache-avro.
APA
encyclopegia.org. (2026). Apache Avro. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/apache-avro
Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON