hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Hadoop Wiki] Update of "FAQ" by RaviPhulari
Date Wed, 06 May 2009 21:16:13 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Hadoop Wiki" for change notification.

The following page has been changed by RaviPhulari:

The comment on the change is:
This is very FAQ on mailing list.

  $ bin/hadoop dfsadmin -report
+ [[BR]]
+ [[Anchor(27)]]
+ '''27. [#27 How do I change final output file name with the desired name rather than in
partitions like part-00000, part-00001 ?]'''
+ You can subclass the [http://svn.apache.org/viewvc/hadoop/core/trunk/src/mapred/org/apache/hadoop/mapred/OutputFormat.java?view=markup
   OutputFormat.java] class and write your own. You can look at the code of [http://svn.apache.org/viewvc/hadoop/core/trunk/src/mapred/org/apache/hadoop/mapred/TextOutputFormat.java?view=markup
     TextOutputFormat] [http://svn.apache.org/viewvc/hadoop/core/trunk/src/mapred/org/apache/hadoop/mapred/MultipleOutputFormat.java?view=markup
   MultipleOutputFormat.java] etc. for reference. It might be the case that you only need
to do minor changes to any of the existing Output Format classes. To do that you can just
subclass that class and override the methods you need to change.

View raw message