java.io.IOException: wrong key class: org.apache.hadoop.io.Text is not class org.apache.hadoop.io.LongWritable

Stack Overflow | MMRaonaidu | 8 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

    Convert text files to SequentialFileOutput format

    Stack Overflow | 8 months ago | MMRaonaidu
    java.io.IOException: wrong key class: org.apache.hadoop.io.Text is not class org.apache.hadoop.io.LongWritable
  2. 0

    Hadoop 2 (YARN). getting java.io.IOException: wrong key class. Exception

    Stack Overflow | 2 years ago | user4550050
    java.io.IOException: wrong key class: org.apache.hadoop.io.BytesWritable is not class org.apache.hadoop.io.IntWritable
  3. 0

    wrong value class: org.apache.mahout.math.VarLongWritable is not class org.apache.mahout.math.VectorWritable

    Stack Overflow | 9 months ago | AceLotte
    java.io.IOException: wrong value class: org.apache.mahout.math.VarLongWritable is not class org.apache.mahout.math.VectorWritable
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    IOException after mapping before reducing

    Stack Overflow | 2 years ago | VeLKerr
    java.io.IOException: wrong key class: org.apache.hadoop.io.Text is not class org.apache.hadoop.io.LongWritable
  6. 0

    java.io.IOException: wrong key class: org.apache.hadoop.io.Text is not class org.apache.hadoop.io.LongWritable - Hortonworks

    hortonworks.com | 11 months ago
    java.io.IOException: wrong key class: org.apache.hadoop.io.Text is not class org.apache.hadoop.io.LongWritable

    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.io.IOException

      wrong key class: org.apache.hadoop.io.Text is not class org.apache.hadoop.io.LongWritable

      at org.apache.hadoop.io.SequenceFile$Writer.append()
    2. Hadoop
      SequenceFile$Writer.append
      1. org.apache.hadoop.io.SequenceFile$Writer.append(SequenceFile.java:1308)
      1 frame
    3. Hadoop
      YarnChild$2.run
      1. org.apache.hadoop.mapreduce.lib.output.SequenceFileOutputFormat$1.write(SequenceFileOutputFormat.java:83)
      2. org.apache.hadoop.mapred.ReduceTask$NewTrackingRecordWriter.write(ReduceTask.java:558)
      3. org.apache.hadoop.mapreduce.task.TaskInputOutputContextImpl.write(TaskInputOutputContextImpl.java:89)
      4. org.apache.hadoop.mapreduce.lib.reduce.WrappedReducer$Context.write(WrappedReducer.java:105)
      5. org.apache.hadoop.mapreduce.Reducer.reduce(Reducer.java:150)
      6. org.apache.hadoop.mapreduce.Reducer.run(Reducer.java:171)
      7. org.apache.hadoop.mapred.ReduceTask.runNewReducer(ReduceTask.java:627)
      8. org.apache.hadoop.mapred.ReduceTask.run(ReduceTask.java:389)
      9. org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:163)
      9 frames
    4. Java RT
      Subject.doAs
      1. java.security.AccessController.doPrivileged(Native Method)
      2. javax.security.auth.Subject.doAs(Subject.java:415)
      2 frames
    5. Hadoop
      UserGroupInformation.doAs
      1. org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1657)
      1 frame
    6. Hadoop
      YarnChild.main
      1. org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:158)
      1 frame