title: hadoop give output after all reducers are done
body: <p>in the first part of the code I set up a number of arrays to keep track of some values like this: </p>
  
  <pre><code>  @Override 
    public void configure(JobConf conf){
         top5=new String[5];
        counttop5=new int[5]
        }
  </code></pre>
  
  <p>Now after some code from the reducer I want to output the content of the top to the output file, however, in order to do this I have created a close() functions : </p>
  
  <pre><code>  @Override 
        public void close(){
           //what goes here? 
        }
  </code></pre>
  
  <p>However as you can see there is nothing to call to as the output is defined in the reducer methode.
  While the code itself is quite long here is the data signature of the methodes :</p>
  
  <pre><code>    public static class Map extends MapReduceBase implements Mapper&lt;LongWritable, Text, Text, Writable&gt; {
  private  static IntWritable one = new IntWritable(1);
      public void map(LongWritable key, Text value, OutputCollector&lt;Text, Writable&gt; output, Reporter reporter) throws IOException {
  public static class Reduce extends MapReduceBase implements Reducer&lt;Text, Writable, Text, Writable&gt; {
  
        static ArrayList&lt;String&gt; files;
            static String[] top5;
            static int[] counttop5;
            int reducedterms;
            public void configure(JobConf conf){
                files= new ArrayList&lt;String&gt;();
                top5=new String[5];
                reducedterms=0; 
                counttop5=new int[5];
  
  
            }
            @Override 
            public void close(){
               //what goes here? 
            }
  
            public void reduce(Text key, Iterator&lt;Writable&gt; values, OutputCollector&lt;Text, Writable&gt; output, Reporter reporter) throws IOException {
      }
  </code></pre>
  
  <p>Anybody know a fix? </p>