title: Map-reduce JobConf - Error in adding FileInputFormat
body: <p>I have created a <code>Mapper</code> using the syntax:</p>
  
  <pre><code>public class xyz extends MapReduceBase implements Mapper&lt;LongWritable, Text, Text, Text&gt;{
      -----
      public void map(LongWritable key, Text value,
          OutputCollector&lt;Text, Text&gt; output, Reporter reporter)
      --
  }
  </code></pre>
  
  <p>In the job, I created a Job object:</p>
  
  <pre><code>Job job = new Job(getConf());
  </code></pre>
  
  <p>To this job, I am not able to add Mapper class using:</p>
  
  <pre><code>job.setMapper(xyz);
  </code></pre>
  
  <p>error message:</p>
  
  <pre><code>The method setMapperClass(Class&lt;? extends Mapper&gt;) in the type Job is not applicable for the arguments (Class&lt;InvertedIndMap1&gt;)
  </code></pre>
  
  <p>I cannot use a map with extends <code>Mapper</code> as I am using <code>outputCollector</code>and <code>Reporter</code> in the <code>mapper</code>.</p>
  
  <p>In the job, if I use <code>JobConf</code> instead of job like:</p>
  
  <pre><code>JobConf conf = new JobConf(getConf());
  </code></pre>
  
  <p>then <code>conf.setMapper(xyz)</code> is working.</p>
  
  <p>But not able to set input paths using:</p>
  
  <pre><code>FileInputFormat.addInputPaths(conf,new Path(args[0]));
  </code></pre>
  
  <p>Error message:</p>
  
  <pre><code>The method addInputPaths(Job, String) in the type FileInputFormat is not applicable for the arguments (JobConf, Path)
  </code></pre>
  
  <p>I tried <code>setInputPaths</code>, <code>setInputpath</code>, <code>addInputPath</code>. But same error again. 
  Same error occurs for <code>addOutputPath/SetOuputpath</code>.</p>
  
  <p>Please suggest a solution for this issue.</p>