<?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: Hadoop - Sqoop job stuck on ACCEPTED when there is a spark job RUNNING in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hadoop-Sqoop-job-stuck-on-ACCEPTED-when-there-is-a-spark-job/m-p/190137#M70844</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/48219/kevinnguyen.html" nodeid="48219"&gt;@Kevin Nguyen&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Assuming the value of "yarn.scheduler.capacity.maximum-am-resource-percent" to be 0.2. Can you try increasing it to 0.3 or 0.4 and check if it works.&lt;/P&gt;&lt;P&gt;Yarn -&amp;gt; Configs -&amp;gt; Advanced -&amp;gt; Scheduler -&amp;gt; Capacity Scheduler&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;</description>
    <pubDate>Wed, 08 Nov 2017 11:29:45 GMT</pubDate>
    <dc:creator>asirna</dc:creator>
    <dc:date>2017-11-08T11:29:45Z</dc:date>
    <item>
      <title>Hadoop - Sqoop job stuck on ACCEPTED when there is a spark job RUNNING</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hadoop-Sqoop-job-stuck-on-ACCEPTED-when-there-is-a-spark-job/m-p/190132#M70839</link>
      <description>&lt;P&gt;At the moment I have a spark job (java) that will always need to be running. It doesn't need too many resources. However, whenever I run a sqoop job (MapReduce), the job is stuck as ACCEPTED: waiting for AM container to be allocated, launched and register with RM.&lt;/P&gt;&lt;P&gt;I checked Ambari and the spark config for scheduling is FAIR. For testing, I tried to run 2 of the same spark job and it ran no problems (state is RUNNING on both). There should be enough cores and memory left for the map reduce job to run.&lt;/P&gt;&lt;P&gt;Spark Submit command:&lt;/P&gt;&lt;PRE&gt;/usr/hdp/current/spark-client/bin/spark-submit   --class com.some.App   --master yarn-cluster   --deploy-mode cluster   --num-executors 1   /path/to/file.jar "some.server:6667" "Some_App" "Some_App_Parser" "some.server"
jdbc:jtds:sqlserver://some.server:1433/HL7_Metadata
&amp;amp;; done
&lt;/PRE&gt;&lt;P&gt;My sqoop command, I added the memory limit but it didn't help:&lt;/P&gt;&lt;PRE&gt;sqoop import -D mapreduce.map.memory.mb=2048     --connect "jdbc:sqlserver://some.server\SQL2012;database=SomeDB;username=someUser;passwor =somePass"     --e "SELECT SOMETHING" where  \$CONDITIONS"    --fields-terminated-by \002     --escaped-by \     --check-column Message_Audit_Log_Id     --incremental append     --last-value 1     --split-by Message_Audit_Log_Id     --target-dir /target/path/
&lt;/PRE&gt;&lt;P&gt;Here are some images for reference:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="43445-spark-1.png" style="width: 1739px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/18523iB01F193CFC4F59F0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="43445-spark-1.png" alt="43445-spark-1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="43446-spark-2.png" style="width: 1683px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/18524i08E2D150670675B5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="43446-spark-2.png" alt="43446-spark-2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="43447-sqoop.png" style="width: 1680px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/18525i8FA966A0AF8A1FD2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="43447-sqoop.png" alt="43447-sqoop.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="43448-yarn-ui.png" style="width: 871px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/18526iD49A6181462FB51A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="43448-yarn-ui.png" alt="43448-yarn-ui.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 07:39:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hadoop-Sqoop-job-stuck-on-ACCEPTED-when-there-is-a-spark-job/m-p/190132#M70839</guid>
      <dc:creator>kevin_nguyen</dc:creator>
      <dc:date>2019-08-18T07:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: Hadoop - Sqoop job stuck on ACCEPTED when there is a spark job RUNNING</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hadoop-Sqoop-job-stuck-on-ACCEPTED-when-there-is-a-spark-job/m-p/190133#M70840</link>
      <description>&lt;P&gt; &lt;A rel="user" href="https://community.cloudera.com/users/48219/kevinnguyen.html" nodeid="48219"&gt;@Kevin Nguyen&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Can you try adding a Node manager and see if it goes to accepted state.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2017 14:41:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hadoop-Sqoop-job-stuck-on-ACCEPTED-when-there-is-a-spark-job/m-p/190133#M70840</guid>
      <dc:creator>asirna</dc:creator>
      <dc:date>2017-11-07T14:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: Hadoop - Sqoop job stuck on ACCEPTED when there is a spark job RUNNING</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hadoop-Sqoop-job-stuck-on-ACCEPTED-when-there-is-a-spark-job/m-p/190134#M70841</link>
      <description>&lt;P&gt;I do have a node manager, I will attach a screenshot. &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="43459-yarn-ui-2.png" style="width: 1238px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/18522iB148E319F07FDDB0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="43459-yarn-ui-2.png" alt="43459-yarn-ui-2.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 07:38:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hadoop-Sqoop-job-stuck-on-ACCEPTED-when-there-is-a-spark-job/m-p/190134#M70841</guid>
      <dc:creator>kevin_nguyen</dc:creator>
      <dc:date>2019-08-18T07:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: Hadoop - Sqoop job stuck on ACCEPTED when there is a spark job RUNNING</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hadoop-Sqoop-job-stuck-on-ACCEPTED-when-there-is-a-spark-job/m-p/190135#M70842</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/48219/kevinnguyen.html" nodeid="48219"&gt;@Kevin Nguyen&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;I meant to add another Node manager in addition to this. Add it in some other host and check if it goes to RUNNING state.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2017 00:11:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hadoop-Sqoop-job-stuck-on-ACCEPTED-when-there-is-a-spark-job/m-p/190135#M70842</guid>
      <dc:creator>asirna</dc:creator>
      <dc:date>2017-11-08T00:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: Hadoop - Sqoop job stuck on ACCEPTED when there is a spark job RUNNING</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hadoop-Sqoop-job-stuck-on-ACCEPTED-when-there-is-a-spark-job/m-p/190136#M70843</link>
      <description>&lt;P&gt;Unfortunately I won't be able to add another Node Manager because we only have 1 host. Adding another host is not ideal for my situation.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2017 03:04:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hadoop-Sqoop-job-stuck-on-ACCEPTED-when-there-is-a-spark-job/m-p/190136#M70843</guid>
      <dc:creator>kevin_nguyen</dc:creator>
      <dc:date>2017-11-08T03:04:21Z</dc:date>
    </item>
    <item>
      <title>Re: Hadoop - Sqoop job stuck on ACCEPTED when there is a spark job RUNNING</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hadoop-Sqoop-job-stuck-on-ACCEPTED-when-there-is-a-spark-job/m-p/190137#M70844</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/48219/kevinnguyen.html" nodeid="48219"&gt;@Kevin Nguyen&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Assuming the value of "yarn.scheduler.capacity.maximum-am-resource-percent" to be 0.2. Can you try increasing it to 0.3 or 0.4 and check if it works.&lt;/P&gt;&lt;P&gt;Yarn -&amp;gt; Configs -&amp;gt; Advanced -&amp;gt; Scheduler -&amp;gt; Capacity Scheduler&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2017 11:29:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hadoop-Sqoop-job-stuck-on-ACCEPTED-when-there-is-a-spark-job/m-p/190137#M70844</guid>
      <dc:creator>asirna</dc:creator>
      <dc:date>2017-11-08T11:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: Hadoop - Sqoop job stuck on ACCEPTED when there is a spark job RUNNING</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hadoop-Sqoop-job-stuck-on-ACCEPTED-when-there-is-a-spark-job/m-p/190138#M70845</link>
      <description>&lt;P&gt;I'd like to thank you sir!!!!! Now both the spark job and the sqoop job can run at the same time. Can you explain to me what exactly this did?&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2017 21:44:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hadoop-Sqoop-job-stuck-on-ACCEPTED-when-there-is-a-spark-job/m-p/190138#M70845</guid>
      <dc:creator>kevin_nguyen</dc:creator>
      <dc:date>2017-11-08T21:44:07Z</dc:date>
    </item>
    <item>
      <title>Re: Hadoop - Sqoop job stuck on ACCEPTED when there is a spark job RUNNING</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hadoop-Sqoop-job-stuck-on-ACCEPTED-when-there-is-a-spark-job/m-p/190139#M70846</link>
      <description>&lt;P&gt; &lt;A rel="user" href="https://community.cloudera.com/users/48219/kevinnguyen.html" nodeid="48219"&gt;@Kevin Nguyen&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;This value controls the maximum no of resources that can be used to run Application master. Also controls the no of concurrent applications running. If this is very low , application master may not even start which will cause the app to be in ACCEPTED state. If it is very high, application master takes all the resources leaving the application only few resources. &lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2017 22:04:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hadoop-Sqoop-job-stuck-on-ACCEPTED-when-there-is-a-spark-job/m-p/190139#M70846</guid>
      <dc:creator>asirna</dc:creator>
      <dc:date>2017-11-08T22:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: Hadoop - Sqoop job stuck on ACCEPTED when there is a spark job RUNNING</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hadoop-Sqoop-job-stuck-on-ACCEPTED-when-there-is-a-spark-job/m-p/286998#M70847</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is the issue happens for a particular queue? Could you please let us know and is the issue happens for a partcular job alone?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It would be fine if you can share us the application logs, RM logs and fair scheduler.xml for further analysis.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;AKR&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2020 09:34:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hadoop-Sqoop-job-stuck-on-ACCEPTED-when-there-is-a-spark-job/m-p/286998#M70847</guid>
      <dc:creator>AKR</dc:creator>
      <dc:date>2020-01-07T09:34:38Z</dc:date>
    </item>
  </channel>
</rss>

