<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Initial job has not accepted any resources, whereas resources are available in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Initial-job-has-not-accepted-any-resources-whereas-resources/m-p/128282#M47497</link>
    <description>&lt;A rel="user" href="https://community.cloudera.com/users/14358/alessandrolulli.html" nodeid="14358"&gt;@Alessandro Lulli&lt;/A&gt;&lt;P&gt;Your cluster has allocated the resources that you have asked for the Spark. It looks like you have a backlog of jobs that are already running. May be there is a job that is stuck in the queue. Kill all the previous applications and see if the job runs. You can also kill all the yarn applications and resubmit the jobs.&lt;/P&gt;&lt;PRE&gt;$ yarn application -list 
$ yarn application -kill $application_id&lt;/PRE&gt;</description>
    <pubDate>Wed, 30 Nov 2016 02:12:46 GMT</pubDate>
    <dc:creator>vjain</dc:creator>
    <dc:date>2016-11-30T02:12:46Z</dc:date>
    <item>
      <title>Initial job has not accepted any resources, whereas resources are available</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Initial-job-has-not-accepted-any-resources-whereas-resources/m-p/128281#M47496</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;i am not able to submit a Spark job. The error is:
YarnScheduler: Initial job has not accepted any resources; check your cluster UI to ensure that workers are registered and have sufficient resources&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="9880-03.png" style="width: 2230px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/22537i14F2BC3D78FA9971/image-size/medium?v=v2&amp;amp;px=400" role="button" title="9880-03.png" alt="9880-03.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I submit the application with the following command:
spark-submit --class util.Main --master yarn-client --executor-memory 512m --executor-cores 2 my.jar my_config&lt;/P&gt;&lt;P&gt;I installed Apache Ambari Version2.4.1.0 and ResourceManager version:2.7.3.2.5.0.0 on Ubuntu 14.04.&lt;/P&gt;&lt;P&gt;Which should be the cause of the issue?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 09:52:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Initial-job-has-not-accepted-any-resources-whereas-resources/m-p/128281#M47496</guid>
      <dc:creator>alessandro_lull</dc:creator>
      <dc:date>2019-08-19T09:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: Initial job has not accepted any resources, whereas resources are available</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Initial-job-has-not-accepted-any-resources-whereas-resources/m-p/128282#M47497</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/14358/alessandrolulli.html" nodeid="14358"&gt;@Alessandro Lulli&lt;/A&gt;&lt;P&gt;Your cluster has allocated the resources that you have asked for the Spark. It looks like you have a backlog of jobs that are already running. May be there is a job that is stuck in the queue. Kill all the previous applications and see if the job runs. You can also kill all the yarn applications and resubmit the jobs.&lt;/P&gt;&lt;PRE&gt;$ yarn application -list 
$ yarn application -kill $application_id&lt;/PRE&gt;</description>
      <pubDate>Wed, 30 Nov 2016 02:12:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Initial-job-has-not-accepted-any-resources-whereas-resources/m-p/128282#M47497</guid>
      <dc:creator>vjain</dc:creator>
      <dc:date>2016-11-30T02:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: Initial job has not accepted any resources, whereas resources are available</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Initial-job-has-not-accepted-any-resources-whereas-resources/m-p/128283#M47498</link>
      <description>&lt;P&gt;Hi Vedant,&lt;/P&gt;&lt;P&gt;Thanks for the reply.
I already executed the two above commands and YARN is listing 0 application.
Then i executed again the job and i am facing two different situations:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The job hangs on:&lt;/P&gt;&lt;PRE&gt;INFO Client: Application report for application_1480498999425_0002 (state: ACCEPTED)&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The job starts (RUNNING STATUS) but when executing the first spark jobs it stops with the following error:&lt;/P&gt;&lt;PRE&gt;YarnScheduler: Initial job has not accepted any resources; check your cluster UI to ensure that workers are registered and have sufficient resources&lt;/PRE&gt;&lt;P&gt;Thanks
Alessandro&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2016 17:57:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Initial-job-has-not-accepted-any-resources-whereas-resources/m-p/128283#M47498</guid>
      <dc:creator>alessandro_lull</dc:creator>
      <dc:date>2016-11-30T17:57:16Z</dc:date>
    </item>
    <item>
      <title>Re: Initial job has not accepted any resources, whereas resources are available</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Initial-job-has-not-accepted-any-resources-whereas-resources/m-p/128284#M47499</link>
      <description>&lt;P&gt;I've seen this issue quite often when folks are first setting up their cluster.  Make sure you have node managers on all of your data nodes.  In addition check the YARN configuration for MAX container size.  If it is less than what you are requesting, resources will never get allocated.  And finally, check the default number of executors.  Try specifying --num-executors 2.  If you request more resources than your cluster has (more vcores or ram), then you will get this issue.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2016 07:25:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Initial-job-has-not-accepted-any-resources-whereas-resources/m-p/128284#M47499</guid>
      <dc:creator>jwiden</dc:creator>
      <dc:date>2016-12-01T07:25:54Z</dc:date>
    </item>
    <item>
      <title>Re: Initial job has not accepted any resources, whereas resources are available</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Initial-job-has-not-accepted-any-resources-whereas-resources/m-p/128285#M47500</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;Fixing the following issue fixed also this one:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/68989/datanodes-status-not-consistent.html#answer-69461" target="_blank"&gt;https://community.hortonworks.com/questions/68989/datanodes-status-not-consistent.html#answer-69461&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Alessandro&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2016 19:18:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Initial-job-has-not-accepted-any-resources-whereas-resources/m-p/128285#M47500</guid>
      <dc:creator>alessandro_lull</dc:creator>
      <dc:date>2016-12-01T19:18:55Z</dc:date>
    </item>
  </channel>
</rss>

