Github user VikingK commented on the issue:

    https://github.com/apache/nifi/pull/3057
  
    @bbende wierd, I tried it again and I got the same error, here is the 
output from avro tools and I also attached my test.avro message
    
    ```
    java -jar avro-tools-1.8.2.jar getschema test.avro
    log4j:WARN No appenders could be found for logger 
(org.apache.hadoop.metrics2.lib.MutableMetricsFactory).
    log4j:WARN Please initialize the log4j system properly.
    log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for 
more info.
    {
      "type" : "record",
      "name" : "IOlist",
      "namespace" : "analytics.models.its",
      "fields" : [ {
        "name" : "OItems",
        "type" : [ "null", {
          "type" : "array",
          "items" : {
            "type" : "record",
            "name" : "ISC",
            "namespace" : "analytics.models.its.iolist.oitems",
            "fields" : [ {
              "name" : "Od",
              "type" : [ "null", "long" ]
            }, {
              "name" : "HS",
              "type" : [ "null", "bytes" ]
            }, {
              "name" : "AS",
              "type" : [ "null", "bytes" ]
            }, {
              "name" : "NS",
              "type" : [ "null", "string" ]
            } ]
          }
        } ]
      } ]
    }
    
    java -jar avro-tools-1.8.2.jar tojson test.avro
    log4j:WARN No appenders could be found for logger 
(org.apache.hadoop.metrics2.lib.MutableMetricsFactory).
    log4j:WARN Please initialize the log4j system properly.
    log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for 
more info.
    
{"OItems":{"array":[{"Od":{"long":99999},"HS":{"bytes":"/w=="},"AS":{"bytes":"AA=="},"NS":{"string":"0"}}]}}
    ```
    
    [test.zip](https://github.com/apache/nifi/files/2469204/test.zip)


---

Reply via email to