Renaming Part Files in Hadoop Map Reduce

后端 未结 2 507
傲寒
傲寒 2020-12-05 05:18

I have tried to use the MultipleOutputs class as per the example in page http://hadoop.apache.org/docs/mapreduce/r0.21.0/api/index.html?org/apache/hadoop/mapred

2条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-05 05:52

    This is all you need to do in the Driver class to change the basename of the output file: job.getConfiguration().set("mapreduce.output.basename", "text"); So this will result in your files being called "text-r-00000".

提交回复
热议问题