第四章单元测试
- 在词频统计(WordCount)的执行过程中,( )模块负责进行单词的拆分与映射。
- MapReduce程序最后输出的结果通常都是按键值进行排序的,那么排序工作发生在MapReducer执行过程中的( )阶段。
- 在驱动类中,( )设置输入数据的格式。
- 在MapReduce程序中,Mapper模块中的自定义类MyMapper继承自( )父类。
- 在MapReduce程序中,必须包含的模块有( )。
A:Driver B:Reducer C:Main D:Mapper
答案:Mapper
A:Reduce B:Map C:Combiner D:Shuffle
答案:Shuffle
A:使用方法setInputFormat B:使用方法setOutputKeyValue C:使用方法setJarByClass D:使用方法setOutputFormat
答案:使用方法setInputFormat
A:Partitioner B:Reducer C:Combiner D:Mapper
答案:Mapper
A:setup、Mapper、Reducer B:Mapper、Combiner、Reducer C:Mapper、Reducer D:Mapper、Reducer、cleanup
答案:setup、Mapper、Reducer