Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-11269

Adding snappy support for SplitAvro

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.20.0
    • 2.0.0-M1, 1.21.0
    • Extensions
    • None
    • Patch, Important

    Description

      I'm using nifi to split a very big avro file (~500MB), but the processor is throwing this error:

      SplitAvro[id=d5f27b12-0186-1000-89b6-3171f53ce832] Processing halted: yielding [1 sec]: org.apache.avro.AvroRuntimeException: Unrecognized codec: snappy

      I'm using NiFi 1.20.0
      The thing is that in 1.13.2 it worked fine. After upgrading to 1.20.0 the problem accrued.
       
      After searching for a bit I've found this solution:
      Add to nifi/nifi-nar-bundles/nifi-avro-bundle/nifi-avro-processors/pom.xml this dependency:

      <dependency>
                  <groupId>org.xerial.snappy</groupId>
                  <artifactId>snappy-java</artifactId>
                  <version>1.1.8.4</version>
      </dependency>

      After build and run this actually works! Would be very nice to add this to the next patch.

       

      This is a deal breaker because I want to upgrade to 1.20.0 from 1.13.2 and can't because of this error.

      Attachments

        Issue Links

          Activity

            People

              johnalan john-alan
              johnalan john-alan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 1h Original Estimate - 1h
                  1h
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 10m
                  1h 10m