org.apache.hadoop.io.LongWritable cannot be cast to org.apache.hadoop.io.Text

public static class MyMapper extends Mapper<Text,Text,Text,IntWritable>{
解决办法:将Text改为Object或者LonWritable
public static class MyMapper extends Mapper<Object,Text,Text,IntWritable>{

猜你喜欢

转载自blog.csdn.net/sofun2018/article/details/83001859