分享

请问下面这个报错怎么解决java.io.IOException

yuwenge 发表于 2013-11-22 22:04:03 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 1 5686
请问下面这个报错怎么解决
public static class Map extends Mapper<LongWritable, Text, Text, Text>
public static class Combine extends Reducer<Text, Text, Text, MapWritable>
public static class Reduce extends Reducer<Text, MapWritable, Text, IntWritable>
这样写三个函数,map运行了一部分之后就报错 说class org.apache.hadoop.io.MapWritable is not class org.apache.hadoop.io.Text
java.io.IOException: Cannot create an instance of InputFormat class org.apache.hadoop.mapred.TextInputFormat as specified in mapredWork!

已有(1)人评论

跳转到指定楼层
pig2 发表于 2013-11-22 22:04:27
明显的类型不匹配啊
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条