<?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: set hive hint in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/set-hive-hint/m-p/189484#M151577</link>
    <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/12437/balavigneshnagamuthuvenkatesan.html" nodeid="12437"&gt;@Bala Vignesh N V&lt;/A&gt; , &lt;/P&gt;&lt;P&gt;    looking for detailed info, assume below are the query in hql ,  &lt;/P&gt;&lt;PRE&gt;        select  count(*) from table1;     

       select sum(col1) from table1 group by col2 ;   

       select sum(col3) from table1 group by col4&lt;/PRE&gt;&lt;P&gt;        first query will returns single column which has count ,  remaining returns 10  columns each.&lt;/P&gt;&lt;P&gt;where this result will store and how to process and more importantly what is the recommended way handle this or how industry handling this ?&lt;/P&gt;&lt;P&gt;Thanks.            &lt;/P&gt;</description>
    <pubDate>Tue, 19 Sep 2017 09:16:58 GMT</pubDate>
    <dc:creator>gobi_subramani</dc:creator>
    <dc:date>2017-09-19T09:16:58Z</dc:date>
    <item>
      <title>set hive hint</title>
      <link>https://community.cloudera.com/t5/Support-Questions/set-hive-hint/m-p/189482#M151575</link>
      <description>&lt;P&gt;Hello Geeks,&lt;/P&gt;&lt;P&gt;   Need clarifications on below question &lt;/P&gt;&lt;P&gt;     1. is hql used to perform multiple quires in single go ?&lt;/P&gt;&lt;P&gt;     2. if yes, How do i set hint for different quires ?  ex: first query I have to set, SMB join , on second I have to set skew join. ( confused about , the property I have set  for first query is also applicable for second query ) &lt;/P&gt;&lt;P&gt;    3. all the 10 quires are returned results , how to process the result. how industry handling this ?&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;</description>
      <pubDate>Mon, 18 Sep 2017 10:34:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/set-hive-hint/m-p/189482#M151575</guid>
      <dc:creator>gobi_subramani</dc:creator>
      <dc:date>2017-09-18T10:34:50Z</dc:date>
    </item>
    <item>
      <title>Re: set hive hint</title>
      <link>https://community.cloudera.com/t5/Support-Questions/set-hive-hint/m-p/189483#M151576</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/12833/gobisubramani.html" nodeid="12833"&gt;@Gobi Subramani&lt;/A&gt;&lt;/P&gt;&lt;P&gt;1.In a single HQL file you can trigger multiple queries provided each query has to be terminated with ";"&lt;/P&gt;&lt;P&gt;2.By hint i assume you meant to say to set a property. You have to know  the default setting first. Once that is known you can set the property for first query then disable the property and set another property needed for second, then trigger the second query. orelse you should use unix to handle it. Have different property for different query in a seperate HQL file. From unix you have use hive -f or hive -e to trigger the file or hive statements.&lt;/P&gt;&lt;P&gt;3. If you are using select statements it will be displayed in the CLI. Orelse you would perform some DML which you insert into a table. Problem solved. In case if you want to process the output of the select clause you have to handle it with unix.&lt;/P&gt;&lt;P&gt;Hope it helps!!&lt;/P&gt;&lt;P&gt;If it answers your question then please accept it as the best answer!!&lt;/P&gt;</description>
      <pubDate>Mon, 18 Sep 2017 23:55:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/set-hive-hint/m-p/189483#M151576</guid>
      <dc:creator>balavignesh_nag</dc:creator>
      <dc:date>2017-09-18T23:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: set hive hint</title>
      <link>https://community.cloudera.com/t5/Support-Questions/set-hive-hint/m-p/189484#M151577</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/12437/balavigneshnagamuthuvenkatesan.html" nodeid="12437"&gt;@Bala Vignesh N V&lt;/A&gt; , &lt;/P&gt;&lt;P&gt;    looking for detailed info, assume below are the query in hql ,  &lt;/P&gt;&lt;PRE&gt;        select  count(*) from table1;     

       select sum(col1) from table1 group by col2 ;   

       select sum(col3) from table1 group by col4&lt;/PRE&gt;&lt;P&gt;        first query will returns single column which has count ,  remaining returns 10  columns each.&lt;/P&gt;&lt;P&gt;where this result will store and how to process and more importantly what is the recommended way handle this or how industry handling this ?&lt;/P&gt;&lt;P&gt;Thanks.            &lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2017 09:16:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/set-hive-hint/m-p/189484#M151577</guid>
      <dc:creator>gobi_subramani</dc:creator>
      <dc:date>2017-09-19T09:16:58Z</dc:date>
    </item>
    <item>
      <title>Re: set hive hint</title>
      <link>https://community.cloudera.com/t5/Support-Questions/set-hive-hint/m-p/189485#M151578</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/12833/gobisubramani.html" nodeid="12833"&gt;@Gobi Subramani&lt;/A&gt; &lt;/P&gt;&lt;P&gt;I think you are not getting the point. Select clause wont store the result.&lt;/P&gt;&lt;P&gt;If you really wanted to store the result then it should be &lt;/P&gt;&lt;PRE&gt;Insert overwrite directory '/pathtostorethefile' select count(*) from table1;

Insert overwrite LOCAL directory '/pathforsecondfile' select sum(col1) from table1 group by col2; --&amp;gt; If you wanted the result to be stored in local directory&lt;/PRE&gt;</description>
      <pubDate>Tue, 19 Sep 2017 12:27:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/set-hive-hint/m-p/189485#M151578</guid>
      <dc:creator>balavignesh_nag</dc:creator>
      <dc:date>2017-09-19T12:27:20Z</dc:date>
    </item>
    <item>
      <title>Re: set hive hint</title>
      <link>https://community.cloudera.com/t5/Support-Questions/set-hive-hint/m-p/189486#M151579</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/12437/balavigneshnagamuthuvenkatesan.html" nodeid="12437"&gt;@Bala Vignesh N V&lt;/A&gt; , Thanks. &lt;/P&gt;&lt;P&gt;   In case, I am running same hql queries daily, then I need to store the result in the file . once hive tasks are completed then read the file and update the table ?  and any other way to achieve it.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2017 22:28:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/set-hive-hint/m-p/189486#M151579</guid>
      <dc:creator>gobi_subramani</dc:creator>
      <dc:date>2017-09-19T22:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: set hive hint</title>
      <link>https://community.cloudera.com/t5/Support-Questions/set-hive-hint/m-p/189487#M151580</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/12833/gobisubramani.html" nodeid="12833"&gt;@Gobi Subramani&lt;/A&gt;  it resemble what you are trying to do is auditing. If that is the case then create a audit table with source table name ,target table name, Records loaded and counts and sum.  Get the values from select statement and use it with insert to the audit table. It should work fine. If it is not audit then you have to either append the data to a file which I have mentioned in the previous comment or you have to create a table and insert the data into the corresponding tables. Happy Hadooping!&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2017 01:13:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/set-hive-hint/m-p/189487#M151580</guid>
      <dc:creator>balavignesh_nag</dc:creator>
      <dc:date>2017-09-20T01:13:23Z</dc:date>
    </item>
  </channel>
</rss>

