在 cdh5.3.0 中将 JSON 和 Avro 模式文件转换为 Avro 格式

Convert JSON and Avro schema files to Avro format in cdh5.3.0

如何在 cdh5.3.0 中将 JSON 和 Avro 架构文件转换为 Avro 格式?我无法访问 Avro-tools jar 文件。

需要手动下载avro-tools.jar...默认不发货。

avro-tools jar 没有作为 CDH 的一部分安装。您可以从 Cloudera's repository, or you can invoke the Avro API the tools jar uses yourself, as demonstrated here.

下载