title: Find reversed names on a file with hadoop mapreduce
body: <p>Hello I have this file <a href="http://aminer.org/lab-datasets/citation/citation-network1.zip" rel="nofollow noreferrer">http://aminer.org/lab-datasets/citation/citation-network1.zip</a> and I need to find the names of the authors that have publications with just 2 authors and they reverse their names on at least one of them. 
  The mapper I made is this one :</p>
  
  <pre><code>    package bigdatauom;
  
      import java.io.IOException;
      import java.util.ArrayList;
      import java.util.StringTokenizer;
      import org.apache.hadoop.io.IntWritable;
      import org.apache.hadoop.io.Text;
      import org.apache.hadoop.mapreduce.Mapper;
  
  public class TokenizerMapper 
  extends Mapper&lt;Object, Text, Text, IntWritable&gt; {
  
  private final static IntWritable one = new IntWritable(1);
  private Text keyAuthors = new Text();
  
  public void map(Object key, Text value, Context context
          ) throws IOException, InterruptedException {    
  
      StringTokenizer authorslinetok = new StringTokenizer(value.toString(), "#");    
  
      while (authorslinetok.hasMoreTokens()) {
          String tempLine = authorslinetok.nextToken();
  
          if (tempLine.charAt(0) == '@') {
              tempLine = tempLine.substring(1);
              StringTokenizer seperateAuthorsTok = new StringTokenizer(tempLine, ",");
              ArrayList&lt;String&gt; authors = new ArrayList&lt;String&gt;();
              while (seperateAuthorsTok.hasMoreTokens()) {
                  authors.add(seperateAuthorsTok.nextToken());
              }
              if (authors.size() == 2){
              keyAuthors.set(tempLine);
              context.write(keyAuthors, one);
              }
          }
      }
  
  }
  }
  </code></pre>
  
  <p>I need to have 2 instances of the reducer and have been working on this project for one week with no result.
  Any advice is appreciated thanks in advance!</p>