java.lang.ClassCastException: org.apache.hadoop.io.LongWritable cannot be cast to org.apache.avro.mapred.AvroKey

Stack Overflow | user3004041 | 6 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

    ClassCastException running MapReduce on Hadoop cluster

    Stack Overflow | 6 months ago | user3004041
    java.lang.ClassCastException: org.apache.hadoop.io.LongWritable cannot be cast to org.apache.avro.mapred.AvroKey

    Root Cause Analysis

    1. java.lang.ClassCastException

      org.apache.hadoop.io.LongWritable cannot be cast to org.apache.avro.mapred.AvroKey

      at somepackage.BalanceByUser$BalanceCountMapper.map()
    2. somepackage
      BalanceByUser$BalanceCountMapper.map
      1. somepackage.BalanceByUser$BalanceCountMapper.map(BalanceByUser.java:1)
      1 frame