title: OOZIE : Connection exception has occurred [ java.net.ConnectException Connection refused (Connection refused) ]
body: <p>I'm trying to execute Oozie job with the help of 
  URL: <a href="https://www.safaribooksonline.com/library/view/apache-oozie/9781449369910/ch05.html" rel="nofollow noreferrer">https://www.safaribooksonline.com/library/view/apache-oozie/9781449369910/ch05.html</a> </p>
  
  <p>While executing 
  <code>oozie job -run -config target/example/job.properties</code></p>
  
  <p>Getting error as : </p>
  
  <pre><code>Connection exception has occurred [ java.net.ConnectException Connection refused (Connection refused) ]. Trying after 1 sec. Retry count = 1
  Connection exception has occurred [ java.net.ConnectException Connection refused (Connection refused) ]. Trying after 2 sec. Retry count = 2
  Connection exception has occurred [ java.net.ConnectException Connection refused (Connection refused) ]. Trying after 4 sec. Retry count = 3
  Connection exception has occurred [ java.net.ConnectException Connection refused (Connection refused) ]. Trying after 8 sec. Retry count = 4
  Error: IO_ERROR : java.io.IOException: Error while connecting Oozie server. No of retries = 4. Exception = Connection refused (Connection refused)
  </code></pre>
  
  <p>Any idea; why connection is getting refused? </p>