java.lang.ClassCastException

org.apache.avro.generic.GenericData$Record > cannot be cast to java.util.Map at > org.apache.avro.file.DataFileWriter.append(DataFileWriter.java:296) at > org.apache.avro.mapreduce.AvroKeyValueRecordWriter.write(AvroKeyValueRecordWriter.java:127) at > org.apache.hadoop.mapreduce.lib.output.MultipleOutputs$RecordWriterWithCounter.write(MultipleOutputs.java:304) at > org.apache.hadoop.mapreduce.lib.output.MultipleOutputs.write(MultipleOutputs.java:370) at > com.paypal.ci.CISuperSessionStage2AvroReducer.reduce(CISuperSessionStage2AvroReducer.java:156) at > com.paypal.ci.CISuperSessionStage2AvroReducer.reduce(CISuperSessionStage2AvroReducer.java:24)

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web19282

  • org.apache.avro.generic.GenericData$Record cannot be cast to java.util.Map at org.apache.avro.file.DataFileWriter.append(DataFileWriter.java:296) at org.apache.avro.mapreduce.AvroKeyValueRecordWriter.write(AvroKeyValueRecordWriter.java:127) at
  • org.apache.avro.generic.GenericData$Record > cannot be cast to java.util.Map at > org.apache.avro.file.DataFileWriter.append(DataFileWriter.java:296) at > org.apache.avro.mapreduce.AvroKeyValueRecordWriter.write(AvroKeyValueRecordWriter.java:127
  • org.apache.avro.generic.GenericData$Record cannot be cast to java.util.Map
  • Stack trace

    • java.lang.ClassCastException: org.apache.avro.generic.GenericData$Record > cannot be cast to java.util.Map at > org.apache.avro.file.DataFileWriter.append(DataFileWriter.java:296) at > org.apache.avro.mapreduce.AvroKeyValueRecordWriter.write(AvroKeyValueRecordWriter.java:127) at > org.apache.hadoop.mapreduce.lib.output.MultipleOutputs$RecordWriterWithCounter.write(MultipleOutputs.java:304) at > org.apache.hadoop.mapreduce.lib.output.MultipleOutputs.write(MultipleOutputs.java:370) at > com.paypal.ci.CISuperSessionStage2AvroReducer.reduce(CISuperSessionStage2AvroReducer.java:156) at > com.paypal.ci.CISuperSessionStage2AvroReducer.reduce(CISuperSessionStage2AvroReducer.java:24) at org.apache.hadoop.mapreduce.Reducer.run(Reducer.java:177)

    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’re the first here who have seen this exception.