<?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 Hive CLI issue when killing with Ctrl+c in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Hive-CLI-issue-when-killing-with-Ctrl-c/m-p/150570#M113072</link>
    <description>&lt;P&gt;I am running HPD 2.4.0.0 installed with Hive 1.2. If I exit the Hive CLI using Ctrl+c, then try to run Hive again immediately, it takes about 10 minutes for the Hive prompt to appear. It just hangs right here:&lt;/P&gt;&lt;PRE&gt;root@node1 bin # hive
WARNING: Use "yarn jar" to launch YARN applications.
Logging initialized using configuration in file:/etc/hive/conf/hive-log4j.properties
&lt;/PRE&gt;&lt;P&gt;Any thoughts on why this may be occurring? &lt;/P&gt;&lt;P&gt;BTW, if I exit Hive using the "exit;" command, everything is fine and I can startup Hive again right away with no issues.&lt;/P&gt;</description>
    <pubDate>Wed, 22 Jun 2016 06:33:22 GMT</pubDate>
    <dc:creator>rich1</dc:creator>
    <dc:date>2016-06-22T06:33:22Z</dc:date>
    <item>
      <title>Hive CLI issue when killing with Ctrl+c</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-CLI-issue-when-killing-with-Ctrl-c/m-p/150570#M113072</link>
      <description>&lt;P&gt;I am running HPD 2.4.0.0 installed with Hive 1.2. If I exit the Hive CLI using Ctrl+c, then try to run Hive again immediately, it takes about 10 minutes for the Hive prompt to appear. It just hangs right here:&lt;/P&gt;&lt;PRE&gt;root@node1 bin # hive
WARNING: Use "yarn jar" to launch YARN applications.
Logging initialized using configuration in file:/etc/hive/conf/hive-log4j.properties
&lt;/PRE&gt;&lt;P&gt;Any thoughts on why this may be occurring? &lt;/P&gt;&lt;P&gt;BTW, if I exit Hive using the "exit;" command, everything is fine and I can startup Hive again right away with no issues.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2016 06:33:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-CLI-issue-when-killing-with-Ctrl-c/m-p/150570#M113072</guid>
      <dc:creator>rich1</dc:creator>
      <dc:date>2016-06-22T06:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: Hive CLI issue when killing with Ctrl+c</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-CLI-issue-when-killing-with-Ctrl-c/m-p/150571#M113073</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/164/rich.html" nodeid="164"&gt;@Rich Raposa&lt;/A&gt; When you start hive cli, it starts a yarn application, which can be viewed via resource manager UI.&lt;/P&gt;&lt;P&gt;When you 'exit', you finish the application. And when you starts hive cli again, it starts another yarn application. But when you do Ctrl+c, that does not finish the application although that application eventually times out. While that previous application still hangs around and when you start CLI again anyway, it try to start a new app, but there is probably not enough capacity because of the previous application. When that previous application eventually times out, a new application start running and that's when you can use Hive CLI again. &lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2016 06:43:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-CLI-issue-when-killing-with-Ctrl-c/m-p/150571#M113073</guid>
      <dc:creator>tsaito</dc:creator>
      <dc:date>2016-06-22T06:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: Hive CLI issue when killing with Ctrl+c</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-CLI-issue-when-killing-with-Ctrl-c/m-p/150572#M113074</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/164/rich.html" nodeid="164"&gt;@Rich Raposa&lt;/A&gt; - In addition to what &lt;A rel="user" href="https://community.cloudera.com/users/333/tsaito.html" nodeid="333"&gt;@Takahiko Saito&lt;/A&gt; said, you can verify this thing by running hive terminal as:&lt;/P&gt;&lt;PRE&gt;hive --hiveconf hive.execution.engine=mr&lt;/PRE&gt;&lt;P&gt;Do ctrl+c&lt;/P&gt;&lt;P&gt;It should not take time to come out as we are using "mr" execution engine.&lt;/P&gt;&lt;P&gt;Hope this information helps.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2016 07:09:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-CLI-issue-when-killing-with-Ctrl-c/m-p/150572#M113074</guid>
      <dc:creator>KuldeepK</dc:creator>
      <dc:date>2016-06-22T07:09:51Z</dc:date>
    </item>
    <item>
      <title>Re: Hive CLI issue when killing with Ctrl+c</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-CLI-issue-when-killing-with-Ctrl-c/m-p/150573#M113075</link>
      <description>&lt;P&gt;Thanks - this is exactly what is happening. FYI: I think it also affecting Pig. Is there a way to set the timeout to be a much shorter value?&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2016 11:00:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-CLI-issue-when-killing-with-Ctrl-c/m-p/150573#M113075</guid>
      <dc:creator>rich1</dc:creator>
      <dc:date>2016-06-22T11:00:20Z</dc:date>
    </item>
    <item>
      <title>Re: Hive CLI issue when killing with Ctrl+c</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-CLI-issue-when-killing-with-Ctrl-c/m-p/150574#M113076</link>
      <description>&lt;P&gt;I too got same issue and resolved by doing hive --hiveconf hive.execution.engine=mr . But, how to resolve it if we want to use Tez instead of mr ?&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2017 06:58:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-CLI-issue-when-killing-with-Ctrl-c/m-p/150574#M113076</guid>
      <dc:creator>gandra</dc:creator>
      <dc:date>2017-08-02T06:58:36Z</dc:date>
    </item>
    <item>
      <title>Re: Hive CLI issue when killing with Ctrl+c</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-CLI-issue-when-killing-with-Ctrl-c/m-p/150575#M113077</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/164/rich.html" nodeid="164"&gt;@rich&lt;/A&gt;
&lt;/P&gt;&lt;P&gt; as given by &lt;A rel="user" href="https://community.cloudera.com/users/504/kkulkarni.html" nodeid="504"&gt;@Kuldeep Kulkarni&lt;/A&gt; and &lt;A rel="user" href="https://community.cloudera.com/users/333/tsaito.html" nodeid="333"&gt;@Takahiko Saito&lt;/A&gt; it launches an YARN appllication when the default execution engine of HIVE is TEZ, and starts waiting for the resources if the Queue is fully occupied and no more resources available. &lt;/P&gt;&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/17809/gandra.html" nodeid="17809"&gt;@gvenkatesh&lt;/A&gt; if you want to continue with TEZ we can do the below to work around the issue (only workaround as it is related to resource limitation of the YARN)&lt;/P&gt;&lt;P&gt;1) Increase the MAX queue capacity &lt;/P&gt;&lt;P&gt;2) Increase the User limitfactor to be more than 1&lt;/P&gt;&lt;P&gt;3) we can reduce the minimum container size 512MB with that we will have an option to launch more containers  (note: this needs to be considered based on cluster usage)&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2017 14:02:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-CLI-issue-when-killing-with-Ctrl-c/m-p/150575#M113077</guid>
      <dc:creator>dheer_vijji_rag</dc:creator>
      <dc:date>2017-08-02T14:02:33Z</dc:date>
    </item>
    <item>
      <title>Re: Hive CLI issue when killing with Ctrl+c</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-CLI-issue-when-killing-with-Ctrl-c/m-p/150576#M113078</link>
      <description>&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2017 23:17:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-CLI-issue-when-killing-with-Ctrl-c/m-p/150576#M113078</guid>
      <dc:creator>gandra</dc:creator>
      <dc:date>2017-08-02T23:17:11Z</dc:date>
    </item>
    <item>
      <title>Re: Hive CLI issue when killing with Ctrl+c</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-CLI-issue-when-killing-with-Ctrl-c/m-p/150577#M113079</link>
      <description>&lt;P&gt;One hack would be to kill the yarn application for a faster resource reclaim, retrieving the appid from RM UI&lt;/P&gt;&lt;P&gt;yarn application -kill &amp;lt;appid&amp;gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2017 01:10:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-CLI-issue-when-killing-with-Ctrl-c/m-p/150577#M113079</guid>
      <dc:creator>asreekumar</dc:creator>
      <dc:date>2017-08-03T01:10:54Z</dc:date>
    </item>
  </channel>
</rss>

