java.lang.Exception: java.lang.ClassCastException: org.apache.avro.generic.GenericData$Record cannot be cast to MyRecord

Stack Overflow | user3213495 | 4 months ago
  1. 0

    Why is my avrokey datum saying it is a Generic Record When I explicitly wrote the data as AvroKey<SpecificRecord>?

    Stack Overflow | 4 months ago | user3213495
    java.lang.Exception: java.lang.ClassCastException: org.apache.avro.generic.GenericData$Record cannot be cast to MyRecord
  2. 0

    Avro "spceific datum reader" problem.

    Google Groups | 4 years ago | rax...@gmail.com
    com.linkedin.camus.coders.MessageDecoderException: com.linkedin.camus.coders.MessageDecoderException: org.apache.avro.AvroRuntimeException: java.lang.ClassCastException: org.apache.avro.generic.GenericData$Record cannot be cast to io.caffeine.camus.etl.kafka.records.Cookies
  3. 0

    java.lang.ClassCastException: org.apache.avro.generic.GenericData$Record cannot be cast to packagename.MyRecord

    Stack Overflow | 1 year ago | Markon
    java.lang.ClassCastException: org.apache.avro.generic.GenericData$Record cannot be cast to packagename.MyRecord
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    RE: Trouble with Avro records

    crunch-user | 2 years ago | Danny Morgan
    java.lang.ClassCastException: org.apache.avro.generic.GenericData$Record cannot be cast to com.test.Visit
  6. 0

    Trouble with Avro records

    crunch-user | 2 years ago | Danny Morgan
    java.lang.ClassCastException: org.apache.avro.generic.GenericData$Record cannot be cast to com.test.Visit

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.ClassCastException

      org.apache.avro.generic.GenericData$Record cannot be cast to MyRecord

      at your.class.path$StatsCalculatorMapper.map()
    2. your.class
      path$StatsCalculatorMapper.map
      1. your.class.path$StatsCalculatorMapper.map(YourSecondJob.java:150)
      2. your.class.path$StatsCalculatorMapper.map(YourSecondJob.java:110)
      2 frames
    3. Hadoop
      Mapper.run
      1. org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:145)
      1 frame