title: WARN cluster.YarnScheduler: Initial job has not accepted any resources
body: <p>Any spark jobs that I run will fail with the following error message </p>
  
  <blockquote>
    <p>17/06/16 11:10:43 WARN cluster.YarnScheduler: Initial job has not
    accepted any resources; check your cluster UI to ensure that workers
    are registered and have sufficient resources</p>
  </blockquote>
  
  <p>Spark version is 1.6, running on Yarn. </p>
  
  <p>I am issuing jobs from pyspark.</p>
  
  <p>And you can notice from the job timeline that it runs indefinitely and no resources are added or removed.<a href="https://i.stack.imgur.com/HsUvu.png" rel="noreferrer">1</a> </p>