我需要在另一个架构中引用Stduent.avsc
{
"type" : "record",
"namespace" : "data.add",
"name" : "Student",
"fields" : [
{ "name" : "Name" , "type" :
"string" },
{ "name" : "Age" , "type" :
"int" }
]
}
我需要在地址Avro模式中引用上述学生模式
{
"type" : "record",
"namespace" : "data.add",
"name" : "Address",
"fields" : [
{ "name" : "student" , "type" :
"Student" }
]
}
以上抛出gradle build错误如何修复..两个模式都在同一文件夹下
答案 0 :(得分:0)
{ “ type”:“记录”, “ namespace”:“ data.add”, “ name”:“地址”, “字段”:[ {“ name”:“ student”,“ type”: “ data.add.Student”} ] } 这样工作