java.lang.IllegalArgumentException: Avro schema must be a record.

tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Avro: convert UNION schema to RECORD schema

    Stack Overflow | 11 months ago | Vitaliy Kotlyarenko
    java.lang.IllegalArgumentException: Avro schema must be a record.

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Avro schema must be a record.

      at parquet.avro.AvroSchemaConverter.convert()
    2. parquet.avro
      AvroParquetWriter.<init>
      1. parquet.avro.AvroSchemaConverter.convert(AvroSchemaConverter.java:96)
      2. parquet.avro.AvroParquetWriter.writeSupport(AvroParquetWriter.java:137)
      3. parquet.avro.AvroParquetWriter.<init>(AvroParquetWriter.java:54)
      4. parquet.avro.AvroParquetWriter.<init>(AvroParquetWriter.java:86)
      4 frames