title: How to run and compile java program on hadoop 0.23.0 MR2
body: <p>I created a .java file to run on cloudera hadoop. To compile it,</p>
  
  <pre><code>   javac -classpath $HADOOP_COMMON_HOME/share/hadoop/mapreduce/hadoop-mapreduce-client- core-3.0.0-SNAPSHOT.jar -d multifetch_classes MultiFetch.java 
  </code></pre>
  
  <p>Errors: </p>
  
  <pre><code>MultiFetch.java:12: package org.apache.hadoop.conf does not exist
  import org.apache.hadoop.conf.Configuration;
                           ^ 
  MultiFetch.java:13: package org.apache.hadoop.conf does not exist
  import org.apache.hadoop.conf.Configured;
                           ^
  MultiFetch.java:14: package org.apache.hadoop.fs does not exist
  import org.apache.hadoop.fs.Path;
                         ^
  MultiFetch.java:15: package org.apache.hadoop.io does not exist
  import org.apache.hadoop.io.Text;
  </code></pre>
  
  <p>Am i selecting wrong jar to execute the file or am i following wrong procedure to compile the java file. Please do let some correct this error. </p>