title: hadoop distcp raises Could not find or load main class org.apache.hadoop.mapreduce.v2.app.MRAppMaster
body: <p>When I'm running distcp to move data from s3 to my local hdfs i get this exception during the map reduce job launched to copy the data:</p>
  
  <pre><code>Error: Could not find or load main class org.apache.hadoop.mapreduce.v2.app.MRAppMaster
  </code></pre>
  
  <p>I checked every online article possible.
  My <code>yarn-site.xml</code> file contains </p>
  
  <p><code>&lt;property&gt;
          &lt;name&gt;yarn.application.classpath&lt;/name&gt;
          &lt;value&gt;
                  $HADOOP_CONF_DIR,
                  $HADOOP_COMMON_HOME/*,
                  $HADOOP_COMMON_HOME/lib/*,
                  $HADOOP_HDFS_HOME/*,
                  $HADOOP_HDFS_HOME/lib/*,
                  $HADOOP_MAPRED_HOME/*,
                  $HADOOP_MAPRED_HOME/lib/*,
                  $HADOOP_YARN_HOME/*,
                  $HADOOP_YARN_HOME/lib/*,
                  $HADOOP_HOME/share/hadoop/mapreduce/,
                  $HADOOP_HOME/share/hadoop/mapreduce/lib/
          &lt;/value&gt;
      &lt;/property&gt;
  </code>
  for every node of the cluster, I checked and those variable are set and point to the right folder, actually <code>$HADOOP_HOME/share/hadoop/mapreduce/</code>is the one that points to <code>hadoop-mapreduce-client-app-2.7.1.jar</code>that is the jar that contains <code>org.apache.hadoop.mapreduce.v2.app.MRAppMaster</code><br>
  Any suggestions??</p>