Apache Avro 介绍
2015-10-23 10:39
453 查看
Download
Avro implementations for C, C++, C#, Java, PHP, Python, and Ruby can be downloaded from the Apache Avro™ Releases page. This guide uses Avro 1.7.7, the latest version at the time of writing. For the examples in this guide, download avro-1.7.7.jar and avro-tools-1.7.7.jar. The Avro Java implementation also depends on the Jackson JSON library. From the Jackson download page, download the core-asl and mapper-asl jars. Add avro-1.7.7.jar and the Jackson jars to your project’s classpath (avro-tools will be used for code generation).
Alternatively, if you are using Maven, add the following dependency to your POM:
As well as the Avro Maven plugin (for performing code generation):
You may also build the required Avro jars from source. Building Avro is beyond the scope of this guide; see the Build Documentation page in the wiki for more information.
Avro implementations for C, C++, C#, Java, PHP, Python, and Ruby can be downloaded from the Apache Avro™ Releases page. This guide uses Avro 1.7.7, the latest version at the time of writing. For the examples in this guide, download avro-1.7.7.jar and avro-tools-1.7.7.jar. The Avro Java implementation also depends on the Jackson JSON library. From the Jackson download page, download the core-asl and mapper-asl jars. Add avro-1.7.7.jar and the Jackson jars to your project’s classpath (avro-tools will be used for code generation).
Alternatively, if you are using Maven, add the following dependency to your POM:
<dependency> <groupId>org.apache.avro</groupId> <artifactId>avro</artifactId> <version>1.7.7</version> </dependency>
As well as the Avro Maven plugin (for performing code generation):
<plugin> <groupId>org.apache.avro</groupId> <artifactId>avro-maven-plugin</artifactId> <version>1.7.7</version> <executions> <execution> <phase>generate-sources</phase> <goals> <goal>schema</goal> </goals> <configuration> <sourceDirectory>${project.basedir}/src/main/avro/</sourceDirectory> <outputDirectory>${project.basedir}/src/main/java/</outputDirectory> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.6</source> <target>1.6</target> </configuration> </plugin>
You may also build the required Avro jars from source. Building Avro is beyond the scope of this guide; see the Build Documentation page in the wiki for more information.
相关文章推荐
- Windows+Apache+MySQL+PHP(WAMP)环境搭建
- 开启Apache Server Status
- org.apache.hadoop.hdfs.server.namenode.SafeModeException: Cannot delete
- org.apache.hadoop.security.AccessControlException: Permission denied:
- apache2 开发C++模块 —— 基于cximage实现图片、缩略图下载功能
- Apache Configuration
- linux----LAMP之编译安装apache
- Apache Spark 入门简介
- 发布Apache Hadoop 2.6.0——异构存储,长时间运行的服务与滚动升级支持
- apache POI 操作excle表格文件,搬运百度的
- CentOS 6.4安装配置LAMP服务器(Apache+PHP5+MySQL)
- Linux下apache activemq的安装与配置
- How To Install Linux, Apache, MySQL, PHP (LAMP) stack on Debian
- zookeeper报错[org.apache.zookeeper.ClientCnxnSocketNIO.cleanup()]: Ignoring exception during shutdown output
- 使用Apache Commons Configuration读取配置信息
- linux Apache安装
- centos 装apache
- 安装apache2并重启服务
- 第 三 十 八 天:Apache 选 项 和 模 块 问 题 附:php
- Apache Maven 入门篇 ( 上 )