问题: Type mismatch in key from map: expected org.apache.hadoop.io.Text, recieved org.apache.hadoop.io.LongWritable 解决方案
在Job中添加相应的输入类型,例如:
job.setMapOutputKeyClass(Text.class); job.setMapOutputValueClass(IntWritable.class);
在Job中添加相应的输入类型,例如:
job.setMapOutputKeyClass(Text.class); job.setMapOutputValueClass(IntWritable.class);