title: MapReduce: Passing external jar files using libjars option does not work
body: <p>My map reduce program needs external jar files.  I am using the
  "-libjars" option to provide those external jar files -</p>
  
  <p>I used Tool, Configured and ToolRunner Utilities provided by hadoop.</p>
  
  <pre><code>  public static void main(String[] args)throws Exception {
           int res = ToolRunner.run(newConfiguration(), new MapReduce(),args);
           System.exit(res);
    }
  
    @Override
    public int run(String[] args) throwsException {
           // Configuration processed by ToolRunner
     Configuration conf = getConf();
     Job job = new Job (conf, "MapReduce");
     ....
     }
  </code></pre>
  
  <p>When I tried to run the job -</p>
  
  <pre><code>$ Hadoop jar myjob.jar jobClassName -libjars external.jar
  </code></pre>
  
  <p>It threw the following exception. </p>
  
  <blockquote>
    <p>12/11/21 16:26:02 INFO mapred.JobClient: Task Id :
    attempt_201211211620_0001_m_000000_1, Status : FAILED Error:
    java.lang.ClassNotFoundException:
    org.joda.time.format.DateTimeFormatterBuilder</p>
  </blockquote>
  
  <p>I have been trying to resolve it for a while. Nothing seems to work so far. I am using CDH 4.1.1.  </p>