Unable to invoke avro-maven plugin

后端 未结 4 1776
星月不相逢
星月不相逢 2021-01-18 21:26

My question is similar to Unable to compile and create .avro file from .avsc using Maven

I have tried all possible things, checked the maven project 100 times, still

4条回答
  •  -上瘾入骨i
    2021-01-18 21:52

    That eclipse error in pom file doesn't matters. Make sure that your .avsc file has namespace value, where actual file is getting generated.

    {
    "namespace": "com.hadoop.practice.avro",
    "type": "record",
    "name": "StringPair",
    "doc": "A pair of strings",
    "fields": [
        {"name": "left", "type": "string"},
        {"name": "right", "type": "string"}
    ]
    

    }

    StringPair.java get generated under this namespace defined package

提交回复
热议问题