<?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: Hive Difference between CLI commands in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Difference-between-CLI-commands/m-p/140733#M48147</link>
    <description>&lt;P&gt;Were you able to look at the logs to see why the query is failing?  I expect you should see messages related to Java HEAP space.  Without the logs, it's hard to say what the problem is.&lt;/P&gt;</description>
    <pubDate>Thu, 08 Dec 2016 01:50:03 GMT</pubDate>
    <dc:creator>myoung</dc:creator>
    <dc:date>2016-12-08T01:50:03Z</dc:date>
    <item>
      <title>Hive Difference between CLI commands</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Difference-between-CLI-commands/m-p/140727#M48141</link>
      <description>&lt;P&gt;Hi there!&lt;/P&gt;&lt;P&gt;I'm new using hortonworks sandbox 2.5 and i wonder why HIVE shows different behavior:&lt;/P&gt;&lt;PRE&gt;hive&amp;gt; select * from tweets limit 2;
OK

then shows fetched rows&lt;/PRE&gt;&lt;PRE&gt;hive&amp;gt; select count(*) from tweets;
Query ID = hdfs_20161205070716_8b694554-f4fe-4aea-b4c9-507d2fc343e0Total 
jobs = 1Launching Job 1 out of 1

then shows 
--------------------------------------------------------------------------------
        VERTICES      STATUS  TOTAL  COMPLETED  RUNNING  PENDING  FAILED  KILLED
--------------------------------------------------------------------------------
Map 1                 FAILED      4          0        0        4      13       0
Reducer 2             KILLED      1          0        0        1       0       0
--------------------------------------------------------------------------------
VERTICES: 00/02  [&amp;gt;&amp;gt;--------------------------] 0%    ELAPSED TIME: 261.46 s   
--------------------------------------------------------------------------------


&lt;/PRE&gt;&lt;P&gt;it is because the second query requires more capability?&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2016 09:29:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Difference-between-CLI-commands/m-p/140727#M48141</guid>
      <dc:creator>cristianvlean</dc:creator>
      <dc:date>2016-12-07T09:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: Hive Difference between CLI commands</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Difference-between-CLI-commands/m-p/140728#M48142</link>
      <description>&lt;P&gt;Simply put, the first query only hits the metastore database and doesn't launch a map reduce job.&lt;/P&gt;&lt;P&gt;On the other hand, the second query runs a map side mapreduce job&lt;/P&gt;&lt;P&gt;EDIT:&lt;/P&gt;&lt;P&gt;Interestingly enough, for the first query, hive makes some good decisions on how to read the data. A simple select * could essentially simply be fetching a file from hdfs like an hdfs get... simplified, but true. &lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2016 09:31:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Difference-between-CLI-commands/m-p/140728#M48142</guid>
      <dc:creator>ed_gleeck</dc:creator>
      <dc:date>2016-12-07T09:31:32Z</dc:date>
    </item>
    <item>
      <title>Re: Hive Difference between CLI commands</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Difference-between-CLI-commands/m-p/140729#M48143</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/14633/cristianvlean.html" nodeid="14633"&gt;@Cristian Vasquez&lt;/A&gt;&lt;P&gt;The first query is limiting the number of rows returned to 2.  That is a quick and easy query to run.  The second query is doing a count which requires processing on all of the rows of data.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;How much memory have you given your Sandbox?&lt;/LI&gt;&lt;LI&gt;How many rows are there in your tweets table?&lt;/LI&gt;&lt;LI&gt;Look at the error messages for the job to see why the tasks failed.&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Wed, 07 Dec 2016 09:32:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Difference-between-CLI-commands/m-p/140729#M48143</guid>
      <dc:creator>myoung</dc:creator>
      <dc:date>2016-12-07T09:32:09Z</dc:date>
    </item>
    <item>
      <title>Re: Hive Difference between CLI commands</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Difference-between-CLI-commands/m-p/140730#M48144</link>
      <description>&lt;P&gt;Ahh.. actually misread your query... thought you were simply reading off a schema... &lt;A rel="user" href="https://community.cloudera.com/users/2695/myoung.html" nodeid="2695"&gt;@Michael Young&lt;/A&gt; explains it better &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2016 09:34:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Difference-between-CLI-commands/m-p/140730#M48144</guid>
      <dc:creator>ed_gleeck</dc:creator>
      <dc:date>2016-12-07T09:34:34Z</dc:date>
    </item>
    <item>
      <title>Re: Hive Difference between CLI commands</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Difference-between-CLI-commands/m-p/140731#M48145</link>
      <description>&lt;P&gt;Dead Michael,
as you say, i'd love knowing how many rows does Tweets table has.&lt;/P&gt;&lt;P&gt;That's why i'm trying to execute a select count(*)&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2016 10:06:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Difference-between-CLI-commands/m-p/140731#M48145</guid>
      <dc:creator>cristianvlean</dc:creator>
      <dc:date>2016-12-07T10:06:33Z</dc:date>
    </item>
    <item>
      <title>Re: Hive Difference between CLI commands</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Difference-between-CLI-commands/m-p/140732#M48146</link>
      <description>&lt;P&gt;Hey Ed. Thanks for answering.&lt;/P&gt;&lt;P&gt;I'm trying to make contact with Michael, lol.&lt;/P&gt;&lt;P&gt;As you can see above, my select count(*) is failling.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2016 10:12:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Difference-between-CLI-commands/m-p/140732#M48146</guid>
      <dc:creator>cristianvlean</dc:creator>
      <dc:date>2016-12-07T10:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: Hive Difference between CLI commands</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Difference-between-CLI-commands/m-p/140733#M48147</link>
      <description>&lt;P&gt;Were you able to look at the logs to see why the query is failing?  I expect you should see messages related to Java HEAP space.  Without the logs, it's hard to say what the problem is.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2016 01:50:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Difference-between-CLI-commands/m-p/140733#M48147</guid>
      <dc:creator>myoung</dc:creator>
      <dc:date>2016-12-08T01:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: Hive Difference between CLI commands</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Difference-between-CLI-commands/m-p/140734#M48148</link>
      <description>&lt;P&gt;Hi Michael, I'm still trying to figure out where to find that log (is there any folder?).
I've tried finding the &lt;STRONG&gt;Query ID&lt;/STRONG&gt; that Hive shows once i execute a query, but couldn't find it.
Query ID = root_20161205190741_fb2a555d-1633-404d-9128-0c3696d2d56a&lt;/P&gt;&lt;P&gt;Until now, i've just found the following exception (through CLI) after execution fails:&lt;/P&gt;&lt;PRE&gt;Status: Failed
Vertex failed, vertexName=Map 1, vertexId=vertex_1480931794353_0004_1_00, diagnostics=[Task failed, taskId=task_1480931794353_0004_1_00_000000, diagnostics=[TaskAttempt 0 failed, info=[Error: Failure while running task:java.lang.RuntimeException: java.lang.OutOfMemoryError: Java heap space&lt;/PRE&gt;&lt;P&gt;Any suggestion? &lt;/P&gt;&lt;P&gt;Regards and thank you Michael for helping me&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="10198-hive-config.png" style="width: 868px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/21747iC95D159A265F555A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="10198-hive-config.png" alt="10198-hive-config.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 08:18:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Difference-between-CLI-commands/m-p/140734#M48148</guid>
      <dc:creator>cristianvlean</dc:creator>
      <dc:date>2019-08-19T08:18:10Z</dc:date>
    </item>
  </channel>
</rss>

