用MRUnit测试多个输出 [英] Testing multiple outputs with MRUnit

查看:124
本文介绍了用MRUnit测试多个输出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法使用 MultipleOutputFormat 来写入多个输出文件来测试Reduce类( MRUnit )?

解决方案

MultipleOutputs 的支持看起来仍在继续 MRUnit Jira



<这就是说,我发现有人实施了自己的驱动程序,将MRUnit的 MapReduceDriver 子类化,以使其与 MultipleOutputs < a href =https://gist.github.com/1717820 =nofollow> here ,希望有所帮助。


Is there a way to test a reduce class with MRUnit that uses MultipleOutputFormat to write to multiple output files?

解决方案

It looks like support for MultipleOutputs is still work in progress in the MRUnit Jira.

That being said, I found someone who implemented his own drivers subclassing MRUnit's MapReduceDriver to make it work with MultipleOutputs here, hope that helps.

这篇关于用MRUnit测试多个输出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆