Mapper< Object, Text, Text, IntWritable>
Mapper< Text, Text, Text, Text>

Mapper< Text, IntWritable, Text, IntWritable>

第一二个表示输入map的key和value,从InputFormat传过来的,key默认是字符偏移量,value默认是一行

第三四个表示输出的key和value

mapper中的方法map(Object key, Text value, Context context)

key和value表示输入的key和value,处理后的数据写入context,使用方法context.write(key, value);,这里的key和value会传递给下一个过程

相关文章:

  • 2022-12-23
  • 2022-01-04
  • 2022-12-23
  • 2021-04-08
猜你喜欢
  • 2021-09-17
  • 2021-09-21
  • 2022-12-23
  • 2022-12-23
  • 2021-10-10
  • 2022-02-03
  • 2022-12-23
相关资源
相似解决方案