分享

多文件目录输出,MultipleOutputFormat这个类直接放到setOutputFormat 中 报错

yuwenge 发表于 2013-11-29 17:38:22 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 2 6507
多文件目录输出,MultipleOutputFormat这个类直接放到setOutputFormat 报错,job.setOutputFormatMultipleOutputFormat.class);报错,说这个类MutipleOutputFormat不可用

已有(2)人评论

跳转到指定楼层
howtodown 发表于 2013-11-29 17:38:50
新旧API混用了吧,你的import语句导入的是哪个MutipleOutputFormat类。
回复

使用道具 举报

yuwenge 发表于 2013-11-29 17:39:24
howtodown 发表于 2013-11-29 17:38
新旧API混用了吧,你的import语句导入的是哪个MutipleOutputFormat类。

是的,应该是选错了API,导入久api了,MutipleOutputFormat  只有这一个包org.apache.hadoopmapred.lib.MutipleOutputFormat
回复

使用道具 举报

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

本版积分规则

关闭

推荐上一条 /2 下一条