In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/03 Report--
Like two exchanges, we need to find a language that can understand each other, Mandarin at home and English abroad, and the communication between the two processes also needs to find a data format that everyone can understand. Simple such as JSON, XML, which is a self-descriptive format, XML has a Schema definition, but there is no formal JSON Schema specification. In the case of efficiency, the plain text data exchange format can not meet the requirements, so there are binary Google Protobuf and Apache Avro. In the ecology of Apache like Hadoop, Kafka naturally chooses Avro.
Avro supports multiple languages, such as C, client, Java, PHP, Python and Ruby. It uses JSON to define Schema. Through tools, Schema can generate data objects in the corresponding language, such as Java's avro-tools.jar. In this way, objects can be exchanged transparently across processes and languages.
This article experiences serialization and deserialization of Avro data format in Java environment.
Avro Schema file is the communication protocol between data production and consumption; we can generate corresponding Java objects by Schema and exchange them with specific Java objects, or we can exchange them with specific Java objects, or we can interact with GenericRecord without generating Java objects. In order to manipulate data simply, we usually use the former method, that is, to generate specific data transfer objects. Read the full text > >
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.