最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Nifi, avro schema for Xml file Exception - Stack Overflow

programmeradmin15浏览0评论

I'm trying to use the following schema for reading xml file with XMLReader service:

     {
       "name": "test",
       "namespace": "nifi",
       "type": "record",
       "fields": [
          {
           "name": "root",
           "type": {
           "name": "RecordForTag",
           "type": "record",
           "fields": [
               {
                "name": "nested1",
                "type": {
                "name": "RecordForTag",
                "type": "record",
                       "fields": [
                          {
                         "name": "nested1",
                         "type": "string"
                          }
                        ]
               }
              }
            ]
           }
          }
        ]
       }

according to examples in .apache.nifi/nifi-record-serialization-services-nar/1.7.0/.apache.nifi.xml.XMLReader/additionalDetails.html

But got the error:

 Not a valid Avro Schema Cant redefine nifi.RecordForTag

What am I doing wrong?

发布评论

评论列表(0)

  1. 暂无评论