title: How can you resolve Oozie error JA009
body: <p>I am running a simple Oozie workflow on Cloudera VM. The sub-workflow calls a shell script which sends a test email. However, I am getting the JA009 error:
  (<code>JA009: Cannot initialize Cluster. Please check your configuration for mapreduce.framework.name and the correspond server addresses.</code>). </p>
  
  <p>I have already changed <code>mapreduce.framework.name</code> from <code>yarn</code> to <code>classic</code> in the following places:</p>
  
  <pre><code>/etc/oozie/conf/hadoop-conf/core-site.xml
  /etc/oozie/conf/hadoop-config.xml
  /etc/hadoop/conf/mapred-site.xml
  </code></pre>
  
  <p>Also, in <code>/etc/hadoop/conf/hadoop-env.sh</code> I changed: </p>
  
  <pre><code>"export HADOOP_MAPRED_HOME=/usr/lib/hadoop-mapreduce"
  </code></pre>
  
  <p>to:</p>
  
  <pre><code>"export HADOOP_MAPRED_HOME=/usr/lib/hadoop-0.20-mapreduce"
  </code></pre>
  
  <p>Is there anything I am missing? Yarn is not showing up in <code>hadoop fs -ls /user</code> (hive, pig, spark etc are). So I am assuming Yarn is not pre-installed here.</p>