I'm trying to consume Avro records from Kafka using Nifi. I have 3 topics filled from an Amazon Lambda and 2 Spark Streaming jobs, all of which use HortonWorks Schema Registry to get the Avro schema.
I tried to use a ConsumeKafkaRecord_0_10 and ConsumeKafkaRecord_2_0 and getting the same error:

I tried with an AvroReader using plain text schema inside, to be sure of the one being used, and got the same error.
When I'm using an AvroReader with the Horton Schema Registry parameter I'm getting this error:

Which could make sens because it's looking at the first byte of the record as a version parameter for the schema, and the first byte is 3. But it doesn't explain why I'm getting ArrayIndexOutOfBound when putting the schema in plain text.
Finally I can consume those topic just fine using Spark Streaming and Schema Registry. Doesn't anyone already encounter such an issue between NiFi and AvroReader when consuming Kafka.
Stack: Horton Works HDP 3.4.1 // Nifi 1.9.0 // Spark 2.3 // Schema Registry 0.7