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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Stack Overflow by user3213495
, 1 year ago
java.lang.ClassCastException: org.apache.avro.generic.GenericData$Record cannot be cast to MyRecord
via Stack Overflow by venkatesh sivalingam
, 1 year ago
java.lang.ClassCastException: com.emaar.bigdata.exchg.logs.CompositeWritable cannot be cast to org.apache.hadoop.io.Text
via Stack Overflow by Shashank Mudlapur
, 1 year ago
java.lang.ClassCastException: org.apache.hadoop.mapreduce.lib.input.FileSplit cannot be cast to org.apache.hadoop.mapred.FileSplit
via GitHub by stefanbacon
, 2 years ago
java.lang.ClassCastException: org.apache.avro.mapred.AvroKey cannot be cast to org.apache.hadoop.io.WritableComparable
via nutch-user by Eyeris Rodriguez Rueda, 8 months ago
java.lang.ClassCastException: org.apache.hadoop.io.IntWritable cannot be cast to org.apache.hadoop.io.Text
via nutch-user by Sebastian Nagel, 8 months ago
java.lang.ClassCastException: org.apache.hadoop.io.IntWritable cannot be cast to org.apache.hadoop.io.Text
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)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.