title: How to specify the partitioner for hadoop streaming
body: <p>I have a custom partitioner like below:</p>
  
  <pre><code>import java.util.*;
  import org.apache.hadoop.mapreduce.*;
  
  public static class SignaturePartitioner extends Partitioner&lt;Text,Text&gt;
  {
      @Override
      public int getPartition(Text key,Text value,int numReduceTasks)
      {
          return (key.toString().Split(' ')[0].hashCode() &amp; Integer.MAX_VALUE) % numReduceTasks;
      }  
  }
  </code></pre>
  
  <p>I set the hadoop streaming parameter like below</p>
  
  <pre><code> -file SignaturePartitioner.java \
   -partitioner SignaturePartitioner \
  </code></pre>
  
  <p>Then I get an error: Class Not Found. </p>
  
  <p>Do you know what's the problem?</p>
  
  <p>Best Regards,</p>