avro maven plugin
$mvn avro:help
[INFO] Scanning for projects...
[INFO]
[INFO] --------------------------< com.mspark:kafka >--------------------------
[INFO] Building kafka 0.0.1-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- avro-maven-plugin:1.9.1:help (default-cli) @ kafka ---
[INFO] Apache Avro Maven Plugin 1.9.1
Maven plugin for Avro IDL and Specific API Compilers
This plugin has 5 goals:
avro:help
Display help information on avro-maven-plugin.
Call mvn avro:help -Ddetail=true -Dgoal=<goal-name> to display parameter
details.
avro:idl-protocol
Generate Java classes and interfaces from AvroIDL files (.avdl)
avro:induce
Generate Avro files (.avsc and .avpr) from Java classes or interfaces
avro:protocol
Generate Java classes and interfaces from Avro protocol files (.avpr)
avro:schema
Generate Java classes from Avro schema files (.avsc)
avro:induce?
avro:idl-protocol? avro:protocol? avro:schema?
참고 : https://gist.github.com/meatcar/081f9c852928934a7029
참고 :
avro rpc 예제 관련 : http://debop.blogspot.com/2013/04/apache-avro-rpc-by-java.html
avsc간 import 관련 : https://www.nerd.vision/post/reusing-schema-definitions-in-avro
[INFO] Scanning for projects...
[INFO]
[INFO] --------------------------< com.mspark:kafka >--------------------------
[INFO] Building kafka 0.0.1-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- avro-maven-plugin:1.9.1:help (default-cli) @ kafka ---
[INFO] Apache Avro Maven Plugin 1.9.1
Maven plugin for Avro IDL and Specific API Compilers
This plugin has 5 goals:
avro:help
Display help information on avro-maven-plugin.
Call mvn avro:help -Ddetail=true -Dgoal=<goal-name> to display parameter
details.
avro:idl-protocol
Generate Java classes and interfaces from AvroIDL files (.avdl)
avro:induce
Generate Avro files (.avsc and .avpr) from Java classes or interfaces
avro:protocol
Generate Java classes and interfaces from Avro protocol files (.avpr)
avro:schema
Generate Java classes from Avro schema files (.avsc)
avro:induce?
avro:idl-protocol? avro:protocol? avro:schema?
참고 : https://gist.github.com/meatcar/081f9c852928934a7029
.avsc
- A JSON representation of an Avro schema (for a single object). This file is parsed by Avro libraries..avpr
- A JSON representation of an Avro protocol (a collection of schemas).avdl
- A code-like language that gets translated to.avsc
or.avpr
using theavro-tools.jar
. This file is not used by Avro libraries, as far as I can tell...
avsc는 하나의 스키마.
avpr는 프로토콜 및 스키마 collection
avdl는 프로그램 언어와 유사 avsc 또는 avpr로 변환.
참고 :
avro rpc 예제 관련 : http://debop.blogspot.com/2013/04/apache-avro-rpc-by-java.html
avsc간 import 관련 : https://www.nerd.vision/post/reusing-schema-definitions-in-avro
댓글
댓글 쓰기