How do multiple reducers output only one part-file in Hadoop?

后端 未结 2 1990
Happy的楠姐
Happy的楠姐 2021-01-13 22:22

In my map-reduce job, I use 4 reducers to implement the reducer jobs. So by doing this, the final output will generate 4 part-files.: part-0000 part-0001 part-0002 part-0003

2条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-13 22:52

    MultipleOutputs.addNamedOutput(conf, "text", TextOutputFormat.class,
     LongWritable.class, Text.class);
    

    Here text is output directory or single large file named text ?

提交回复
热议问题