title: Can't execute the basic Hadoop Mapreduce Wordcount example
body: <p>I am trying to run the <a href="https://hadoop.apache.org/docs/r1.2.1/mapred_tutorial.html" rel="nofollow noreferrer">WordCount example</a>. But I am facing issues with compiling the program.</p>
  
  <p>I get the error:</p>
  
  <blockquote>
    <p>error: package org.apache.hadoop.mapred does not exist</p>
  </blockquote>
  
  <p>after executing:</p>
  
  <pre><code>javac -classpath /usr/local/hadoop/share/hadoop/common/hadoop-common-2.7.3.jar -d wordcount_classes WordCount.java
  </code></pre>
  
  <p>I set up hadoop using this <a href="http://www.bogotobogo.com/Hadoop/BigData_hadoop_Install_on_ubuntu_single_node_cluster.php" rel="nofollow noreferrer">tutorial</a>. <strong>I also looked this up on stackoverflow</strong> : <a href="https://stackoverflow.com/questions/26723526/package-org-apache-hadoop-fs-does-not-exist">question</a> and executed the <code>bin/hadoop classpath</code> command in <code>/usr/local/hadoop</code>. This is the output I obtained:</p>
  
  <blockquote>
    <p>/usr/local/hadoop/etc/hadoop:/usr/local/hadoop/share/hadoop/common/lib/* :/usr/local/hadoop/share/hadoop/common/* :/usr/local/hadoop/share/hadoop/hdfs:/usr/local/hadoop/share/hadoop/hdfs/lib/* :/usr/local/hadoop/share/hadoop/hdfs/* :/usr/local/hadoop/share/hadoop/yarn/lib/* :/usr/local/hadoop/share/hadoop/yarn/* :/usr/local/hadoop/share/hadoop/mapreduce/lib/* :/usr/local/hadoop/share/hadoop/mapreduce/* :/contrib/capacity-scheduler/*.jar</p>
  </blockquote>
  
  <p>But I don't know what to make of it or what my next step should be! Please help!</p>