第四章单元测试
  1. 在词频统计(WordCount)的执行过程中,( )模块负责进行单词的拆分与映射。

  2. A:Driver B:Reducer C:Main D:Mapper
    答案:Mapper
  3. MapReduce程序最后输出的结果通常都是按键值进行排序的,那么排序工作发生在MapReducer执行过程中的( )阶段。

  4. A:Reduce B:Map C:Combiner D:Shuffle
    答案:Shuffle
  5. 在驱动类中,( )设置输入数据的格式。

  6. A:使用方法setInputFormat B:使用方法setOutputKeyValue C:使用方法setJarByClass D:使用方法setOutputFormat
    答案:使用方法setInputFormat
  7. 在MapReduce程序中,Mapper模块中的自定义类MyMapper继承自( )父类。

  8. A:Partitioner B:Reducer C:Combiner D:Mapper
    答案:Mapper
  9. 在MapReduce程序中,必须包含的模块有( )。

  10. A:setup、Mapper、Reducer B:Mapper、Combiner、Reducer C:Mapper、Reducer D:Mapper、Reducer、cleanup
    答案:setup、Mapper、Reducer

点赞(2) dxwkbang
返回
顶部