<?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 How do I stop beeline holding onto YARN containers after a job (performing a hive insert into) has successfully run? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-stop-beeline-holding-onto-YARN-containers-after-a/m-p/173338#M37612</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;When I run an insert into command through beeline Hive/Tez requests 2 containers. Once beeline reports that the row was successfully inserted in to the table I see that the job created (seen in the YARN Manager UI) is still running and holds on to one of the two containers, when I terminate beeline the job listed in the Manager UI then lists as completed.&lt;/P&gt;&lt;P&gt;Why is this happening and how can I change my hadoop configuration to stop this happening?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;</description>
    <pubDate>Thu, 11 Aug 2016 21:40:32 GMT</pubDate>
    <dc:creator>mph</dc:creator>
    <dc:date>2016-08-11T21:40:32Z</dc:date>
    <item>
      <title>How do I stop beeline holding onto YARN containers after a job (performing a hive insert into) has successfully run?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-stop-beeline-holding-onto-YARN-containers-after-a/m-p/173338#M37612</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;When I run an insert into command through beeline Hive/Tez requests 2 containers. Once beeline reports that the row was successfully inserted in to the table I see that the job created (seen in the YARN Manager UI) is still running and holds on to one of the two containers, when I terminate beeline the job listed in the Manager UI then lists as completed.&lt;/P&gt;&lt;P&gt;Why is this happening and how can I change my hadoop configuration to stop this happening?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2016 21:40:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-stop-beeline-holding-onto-YARN-containers-after-a/m-p/173338#M37612</guid>
      <dc:creator>mph</dc:creator>
      <dc:date>2016-08-11T21:40:32Z</dc:date>
    </item>
    <item>
      <title>Re: How do I stop beeline holding onto YARN containers after a job (performing a hive insert into) has successfully run?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-stop-beeline-holding-onto-YARN-containers-after-a/m-p/173339#M37613</link>
      <description>&lt;P&gt; &lt;A rel="user" href="https://community.cloudera.com/users/5744/mikeyharding.html" nodeid="5744"&gt;@mike harding&lt;/A&gt; check if you have tez reuse container turned on&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;tez.am.container.reuse.enabled=true&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Configuration that specifies whether a container should be reused.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;This allow other application to reuse tez containers to increase performance.  turn it off if you are not interested in that functinoality.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2016 21:40:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-stop-beeline-holding-onto-YARN-containers-after-a/m-p/173339#M37613</guid>
      <dc:creator>sunile_manjee</dc:creator>
      <dc:date>2016-08-11T21:40:58Z</dc:date>
    </item>
    <item>
      <title>Re: How do I stop beeline holding onto YARN containers after a job (performing a hive insert into) has successfully run?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-stop-beeline-holding-onto-YARN-containers-after-a/m-p/173340#M37614</link>
      <description>&lt;P&gt;what is &lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;tez.am.session.min.held-containers&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;set to?&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2016 23:57:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-stop-beeline-holding-onto-YARN-containers-after-a/m-p/173340#M37614</guid>
      <dc:creator>sunile_manjee</dc:creator>
      <dc:date>2016-08-11T23:57:14Z</dc:date>
    </item>
    <item>
      <title>Re: How do I stop beeline holding onto YARN containers after a job (performing a hive insert into) has successfully run?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-stop-beeline-holding-onto-YARN-containers-after-a/m-p/173341#M37615</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1486/smanjee.html" nodeid="1486"&gt;@Sunile Manjee&lt;/A&gt; I checked this and it is false. The remaining container seems to be the application master. When I run the Hive jobs via MapReduce2 they complete fine, its just when they are run in Tez I see this behaviour.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2016 23:58:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-stop-beeline-holding-onto-YARN-containers-after-a/m-p/173341#M37615</guid>
      <dc:creator>mph</dc:creator>
      <dc:date>2016-08-11T23:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: How do I stop beeline holding onto YARN containers after a job (performing a hive insert into) has successfully run?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-stop-beeline-holding-onto-YARN-containers-after-a/m-p/173342#M37616</link>
      <description>&lt;P&gt;..I found that in my ambari settings this was not specified  - on setting this to 0 and setting tez.session.am.dag.submit.timeout.secs to a smaller amount gave me the behaviour i was looking for.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2016 19:21:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-stop-beeline-holding-onto-YARN-containers-after-a/m-p/173342#M37616</guid>
      <dc:creator>mph</dc:creator>
      <dc:date>2016-08-12T19:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: How do I stop beeline holding onto YARN containers after a job (performing a hive insert into) has successfully run?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-stop-beeline-holding-onto-YARN-containers-after-a/m-p/173343#M37617</link>
      <description>&lt;P&gt; &lt;A rel="user" href="https://community.cloudera.com/users/5744/mikeyharding.html" nodeid="5744"&gt;@mike harding&lt;/A&gt; to add to this, Tez by default first initializes an AM whereas MapReduce does so at submission only.  This is the reason you see the behavior you describe. The tez container has a timeout setting as you stated and that will determine how long lived that initial AM is&lt;/P&gt;</description>
      <pubDate>Mon, 12 Sep 2016 20:01:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-stop-beeline-holding-onto-YARN-containers-after-a/m-p/173343#M37617</guid>
      <dc:creator>iroberts</dc:creator>
      <dc:date>2016-09-12T20:01:08Z</dc:date>
    </item>
  </channel>
</rss>

