hadoop-mapreduce-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Harsh J <qwertyman...@gmail.com>
Subject Re: customizing output file name
Date Mon, 01 Nov 2010 07:20:21 GMT
Hello,

On Mon, Nov 1, 2010 at 12:34 PM, exception <exception@taomee.com> wrote:
> Hi all,
>
>
>
> Is there any way to change the final output file name of a job? Rather than
> the default file names (part-00000 ……), I want to use some other naming
> rules, which can be more meaningful.

The FAQ covers this:
http://wiki.apache.org/hadoop/FAQ#How_do_I_change_final_output_file_name_with_the_desired_name_rather_than_in_partitions_like_part-00000.2C_part-00001.3F

>
> This probably can be done by customizing the RecordWirter or OutputFormat.
> However, I wonder if there is any configuration related to naming output
> files?
>
>
>
> Thank.
>
>

Also, using MultipleOutputs.addNamedOutput is an indirectly easy way.

-- 
Harsh J
www.harshj.com

Mime
View raw message