【发布时间】:2018-12-04 15:09:05
【问题描述】:
有什么方法可以获取有关 avro 架构问题的有用信息?
我正在尝试做以下工作
{
"namespace": "format.data.something",
"type": "record",
"name": "data",
"fields": [
{
"name": "generator",
"type": "string"
},
{
"name": "mapping",
"type": {
"name": "mappingItemSequence",
"type": "array",
"items": {
"name": "item",
"type": {
"name": "mappingItem",
"type": "record",
"fields": [
{
"name": "content",
"type": "string"
},
{
"name": "tokenOutput",
"type": {
"name": "token",
"type": "string"
}
},
{
"name": "inputTokens",
"type": {
"name": "tokensSequence",
"type": "array",
"items": {
"name": "tokenInput",
"type": {
"name": "token",
"type": "string"
}
}
}
}
]
}
}
}
}
]
}
我从 maven 收到一条非常神秘的消息:
Execution default of goal org.apache.avro:avro-maven-plugin:1.8.2:schema failed: No type: {"name":"item","type":{"name":"mappingItem","type":"record","fields":[{"name":"content","type":"string"},{"name":"tokenOutput","type":{"name":"token","type":"string"}},{"name":"inputTokens","type":{"name":"tokensSequence","type":"array","items":{"name":"tokenInput","type":{"name":"token","type":"string"}}}}]}}
我正在使用 apache avro 1.8.2,我正在尝试使用 maven 编译为 java。
非常感谢。
【问题讨论】: