You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by Apache Wiki <wi...@apache.org> on 2009/05/06 23:16:13 UTC

[Hadoop Wiki] Update of "FAQ" by RaviPhulari

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:
http://wiki.apache.org/hadoop/FAQ

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.
+