//maven
org.apache.avr
下载不完全 ,去maven
If you are using maven to build your jar, you need to add the following dependency:
<dependency>
<groupId>org.apache.avro</groupId>
<artifactId>avro</artifactId>
</dependency>
注意,eclipse 提示maven工程缺少jar 包 Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/avro/io/DatumReader
解决方法:
1.删除avro 的jar包物理磁盘文件,
2.右键工程--->maven-->updateProject
重新下载对应的jar包