title: ConnectionException when running a Oozie workflow
body: <p>When trying to run a Oozie workflow with a Java action, I get the following error.</p>
  
  <pre><code>JA006: Call From sandbox.hortonworks.com/10.0.2.15 to sandbox.hortonworks.com:10020 failed 
  on connection exception: java.net.ConnectException: Connection refused; 
  For more details see: http://wiki.apache.org/hadoop/ConnectionRefused
  </code></pre>
  
  <p>This is the workflow.xml</p>
  
  <pre><code>&lt;workflow-app name="cascading-wordcount" xmlns="uri:oozie:workflow:0.4"&gt;
  &lt;start to="wordcount_job"/&gt;
  &lt;action name="wordcount_job"&gt;
      &lt;java&gt;
          &lt;job-tracker&gt;${jobTracker}&lt;/job-tracker&gt;
          &lt;name-node&gt;${nameNode}&lt;/name-node&gt;
          &lt;configuration&gt;
              &lt;property&gt;
                  &lt;name&gt;jobTracker&lt;/name&gt;
                  &lt;value&gt;sandbox.hortonworks.com:8050&lt;/value&gt;
              &lt;/property&gt;
          &lt;/configuration&gt;
          &lt;main-class&gt;com.test.cascading.WordCount&lt;/main-class&gt;
          &lt;arg&gt;/user/hue/oozie/test/cascading-in/rain.txt&lt;/arg&gt;
          &lt;arg&gt;/user/hue/oozie/test/cascading-out&lt;/arg&gt;
          &lt;capture-output/&gt;
      &lt;/java&gt;
      &lt;ok to="end"/&gt;
      &lt;error to="kill"/&gt;
  &lt;/action&gt;
  &lt;kill name="kill"&gt;
      &lt;message&gt;Action failed, error message[${wf:errorMessage(wf:lastErrorNode())}]&lt;/message&gt;
  &lt;/kill&gt;
  &lt;end name="end"/&gt;
  </code></pre>
  
  <p></p>
  
  <p>I can't even view the logs related to the job. When I try, it gives </p>
  
  <pre><code>Could not find job job_1453962161829_0005.
  Job job_1453962161829_0005 could not be found: HTTPConnectionPool(host='sandbox.hortonworks.com', port=19888): Max retries exceeded with url: /ws/v1/history/mapreduce/jobs/job_1453962161829_0005 (Caused by &lt;class 'socket.error'&gt;: [Errno 111] Connection refused)
  </code></pre>
  
  <p>I can run the same jar used here using CLI with the command <code>yarn jar</code>. I'm a novice to these. I fear I might have done a stupid mistake.</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>This is what I get when trying to view the logs through CLI as snies said.</p>
  
  <pre><code>impl.TimelineClientImpl: Timeline service address: http://sandbox.hortonworks.com:8188/ws/v1/timeline/
  client.RMProxy: Connecting to ResourceManager at sandbox.hortonworks.com/10.0.2.15:8050
  /app-logs/root/logs/application_1453962161829_0005 does not exist.
  Log aggregation has not completed or is not enabled.
  </code></pre>