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

csdn.net | 10 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

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

    csdn.net | 10 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