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

Google Groups | Grigoriy Roghkov | 8 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Kafka Connect (HDFS connector)

    Google Groups | 8 months ago | Grigoriy Roghkov
    java.lang.IllegalArgumentException: Avro schema must be a record.

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Avro schema must be a record.

      at org.apache.parquet.avro.AvroSchemaConverter.convert()
    2. org.apache.parquet
      AvroParquetWriter.<init>
      1. org.apache.parquet.avro.AvroSchemaConverter.convert(AvroSchemaConverter.java:89)
      2. org.apache.parquet.avro.AvroParquetWriter.writeSupport(AvroParquetWriter.java:103)
      3. org.apache.parquet.avro.AvroParquetWriter.<init>(AvroParquetWriter.java:47)
      3 frames
    3. io.confluent.connect
      HdfsSinkTask.put
      1. io.confluent.connect.hdfs.parquet.ParquetRecordWriterProvider.getRecordWriter(ParquetRecordWriterProvider.java:51)
      2. io.confluent.connect.hdfs.TopicPartitionWriter.getWriter(TopicPartitionWriter.java:415)
      3. io.confluent.connect.hdfs.TopicPartitionWriter.writeRecord(TopicPartitionWriter.java:486)
      4. io.confluent.connect.hdfs.TopicPartitionWriter.write(TopicPartitionWriter.java:264)
      5. io.confluent.connect.hdfs.DataWriter.write(DataWriter.java:234)
      6. io.confluent.connect.hdfs.HdfsSinkTask.put(HdfsSinkTask.java:90)
      6 frames
    4. org.apache.kafka
      ShutdownableThread.run
      1. org.apache.kafka.connect.runtime.WorkerSinkTask.deliverMessages(WorkerSinkTask.java:280)
      2. org.apache.kafka.connect.runtime.WorkerSinkTask.poll(WorkerSinkTask.java:176)
      3. org.apache.kafka.connect.runtime.WorkerSinkTaskThread.iteration(WorkerSinkTaskThread.java:90)
      4. org.apache.kafka.connect.runtime.WorkerSinkTaskThread.execute(WorkerSinkTaskThread.java:58)
      5. org.apache.kafka.connect.util.ShutdownableThread.run(ShutdownableThread.java:82)
      5 frames