title: Running wordcount sample using MRV1 on CDH4.0.1 VM
body: <p>I downloaded the VM from <a href="https://downloads.cloudera.com/demo_vm/vmware/cloudera-demo-vm-cdh4.0.0-vmware.tar.gz" rel="nofollow">https://downloads.cloudera.com/demo_vm/vmware/cloudera-demo-vm-cdh4.0.0-vmware.tar.gz</a></p>
  
  <p>I found that below listed services are running after the system boots.</p>
  
  <ul>
  <li>MRV1 Services</li>
  </ul>
  
  <p>hadoop-0.20-mapreduce-jobtracker<br>
  hadoop-0.20-mapreduce-tasktracker</p>
  
  <ul>
  <li>MRV2 services</li>
  </ul>
  
  <p>hadoop-yarn-nodemanager<br>
  hadoop-yarn-resourcemanager<br>
  hadoop-mapreduce-historyserver</p>
  
  <ul>
  <li>HDFS Services</li>
  </ul>
  
  <p>hadoop-hdfs-namenode<br>
  hadoop-hdfs-datanode</p>
  
  <p>The word count example runs fine and generates the output as expected </p>
  
  <pre><code>/usr/bin/hadoop jar /usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar wordcount input output
  </code></pre>
  
  <p>However, the above runs using the MRv2 - YARN framework</p>
  
  <p>My goal is to run using MRv1. As suggested on the Cloudera documentation, I stop the MRV2 services, and edited /etc/hadoop/conf/mapred-site.xml</p>
  
  <pre><code>  &lt;property&gt;
      &lt;name&gt;mapreduce.framework.name&lt;/name&gt;
      &lt;value&gt;yarn&lt;/value&gt;
    &lt;/property
  </code></pre>
  
  <p>to "classic" (also tried "local")</p>
  
  <pre><code>  &lt;property&gt;
      &lt;name&gt;mapreduce.framework.name&lt;/name&gt;
      &lt;value&gt;classic&lt;/value&gt;
    &lt;/property
  </code></pre>
  
  <p>I expected it to run using MRV1 (jobtracker and tasktracker). However, I see the following error:</p>
  
  <pre><code>12/10/10 21:48:39 INFO mapreduce.Cluster: Failed to use org.apache.hadoop.mapred.LocalClientProtocolProvider due to error: Invalid "mapreduce.jobtracker.address" configuration value for LocalJobRunner : "172.30.5.21:8021"
  12/10/10 21:48:39 ERROR security.UserGroupInformation: PriviledgedActionException as:cloudera (auth:SIMPLE) cause:java.io.IOException: Cannot initialize Cluster. Please check your configuration for mapreduce.framework.name and the correspond server addresses.
  java.io.IOException: Cannot initialize Cluster. Please check your configuration for mapreduce.framework.name and the correspond server addresses.
          at org.apache.hadoop.mapreduce.Cluster.initialize(Cluster.java:121)
          at org.apache.hadoop.mapreduce.Cluster.&lt;init&gt;(Cluster.java:83)
          ......
  </code></pre>
  
  <p>Can someone suggest what could be wrong. Why is the error pointing to invalid configuration?</p>