java.lang.Exception

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

Solutions on the web2609

  • java.lang.ClassCastException: org.apache.avro.generic.GenericData$Record cannot be cast to MyRecord
  • via GitHub by stefanbacon
    , 1 year ago
    java.lang.ClassCastException: org.apache.avro.mapred.AvroKey cannot be cast to org.apache.hadoop.io.WritableComparable
  • java.lang.ClassCastException: org.apache.hadoop.hbase.client.Put cannot be cast to org.apache.hadoop.hbase.Cell
  • Stack trace

    • java.lang.Exception: java.lang.ClassCastException: org.apache.avro.generic.GenericData$Record cannot be cast to MyRecord at org.apache.hadoop.mapred.LocalJobRunner$Job.runTasks(LocalJobRunner.java:462) at org.apache.hadoop.mapred.LocalJobRunner$Job.run(LocalJobRunner.java:522) Caused by: java.lang.ClassCastException: org.apache.avro.generic.GenericData$Record cannot be cast to MyRecord at your.class.path$StatsCalculatorMapper.map(YourSecondJob.java:150) at your.class.path$StatsCalculatorMapper.map(YourSecondJob.java:110) at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:145)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You are the first who have seen this exception. Write a tip to help other users and build your expert profile.