java.io.IOException: wrong key class: class com.yunsuan.gaoyuan.comm.TblsWritable is not class org.apache.hadoop.io.IntWritable

csdn.net | 7 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    hadoop打成jar包放到服务器上运行问题集 - todo-hadoop学习记录 - 博客频道 - CSDN.NET

    csdn.net | 7 months ago
    java.io.IOException: wrong key class: class com.yunsuan.gaoyuan.comm.TblsWritable is not class org.apache.hadoop.io.IntWritable
  2. 0

    wrong value class: class org.apache.hadoop.io.Text is not class org.apache.hadoop.io.IntWritable

    Stack Overflow | 2 years ago
    java.io.IOException: wrong value class: class org.apache.hadoop.io.Text is not class org.apache.hadoop.io.IntWritable

    Root Cause Analysis

    1. java.io.IOException

      wrong key class: class com.yunsuan.gaoyuan.comm.TblsWritable is not class org.apache.hadoop.io.IntWritable

      at org.apache.hadoop.mapred.IFile$Writer.append()
    2. Hadoop
      WrappedReducer$Context.write
      1. org.apache.hadoop.mapred.IFile$Writer.append(IFile.java:196)
      2. org.apache.hadoop.mapred.Task$CombineOutputCollector.collect(Task.java:1307)
      3. org.apache.hadoop.mapred.Task$NewCombinerRunner$OutputConverter.write(Task.java:1624)
      4. org.apache.hadoop.mapreduce.task.TaskInputOutputContextImpl.write(TaskInputOutputContextImpl.java:89)
      5. org.apache.hadoop.mapreduce.lib.reduce.WrappedReducer$Context.write(WrappedReducer.java:105)
      5 frames
    3. com.yunsuan.gaoyuan
      ComputeSimilarityJob$ChangeToSimilarityMatrixReducer.reduce
      1. com.yunsuan.gaoyuan.recom.ComputeSimilarityJob$ChangeToSimilarityMatrixReducer.reduce(ComputeSimilarityJob.java:302)
      2. com.yunsuan.gaoyuan.recom.ComputeSimilarityJob$ChangeToSimilarityMatrixReducer.reduce(ComputeSimilarityJob.java:1)
      2 frames