<?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 to use loop in hive in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/how-to-use-loop-in-hive/m-p/138850#M101479</link>
    <description>&lt;P&gt;I want to insert the table more than 100. Is it possible to do it in for loop in hql. if yes, please share it&lt;/P&gt;</description>
    <pubDate>Wed, 19 Oct 2016 17:52:11 GMT</pubDate>
    <dc:creator>anbu_eswaran</dc:creator>
    <dc:date>2016-10-19T17:52:11Z</dc:date>
    <item>
      <title>how to use loop in hive</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-use-loop-in-hive/m-p/138850#M101479</link>
      <description>&lt;P&gt;I want to insert the table more than 100. Is it possible to do it in for loop in hql. if yes, please share it&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2016 17:52:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-use-loop-in-hive/m-p/138850#M101479</guid>
      <dc:creator>anbu_eswaran</dc:creator>
      <dc:date>2016-10-19T17:52:11Z</dc:date>
    </item>
    <item>
      <title>Re: how to use loop in hive</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-use-loop-in-hive/m-p/138851#M101480</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/13843/anbueswaran.html" nodeid="13843"&gt;@Anbu Eswaran&lt;/A&gt; &lt;/P&gt;&lt;P&gt; Just add the records to a file and LOAD the file to Hive. &lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2016 23:48:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-use-loop-in-hive/m-p/138851#M101480</guid>
      <dc:creator>grajagopal</dc:creator>
      <dc:date>2016-10-19T23:48:34Z</dc:date>
    </item>
    <item>
      <title>Re: how to use loop in hive</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-use-loop-in-hive/m-p/138852#M101481</link>
      <description>&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;Please refer below example.&lt;/P&gt;&lt;P&gt;With a little bash we can loop through all our tables, appending the results to a file:
#get a list of the files&lt;/P&gt;&lt;PRE&gt;hive -e "show tables;" &amp;gt; hivetables.txt&lt;/PRE&gt;&lt;P&gt;Now — cool stuff:&lt;/P&gt;&lt;PRE&gt;for line in $(cat hivetables.txt) ; 
do 
     results=$(hive -hiveconf tablename=$line -f test.hql) 
     echo $results &amp;gt;&amp;gt; tablecounts.txt &lt;/PRE&gt;&lt;P&gt; done&lt;/P&gt;&lt;P&gt;Hope this will be helpful.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mahesh&lt;/P&gt;</description>
      <pubDate>Fri, 21 Oct 2016 13:16:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-use-loop-in-hive/m-p/138852#M101481</guid>
      <dc:creator>maheshmsh88</dc:creator>
      <dc:date>2016-10-21T13:16:26Z</dc:date>
    </item>
    <item>
      <title>Re: how to use loop in hive</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-use-loop-in-hive/m-p/138853#M101482</link>
      <description>&lt;P&gt;Thanks its working fine now. sorry for the delay reply&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2016 21:47:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-use-loop-in-hive/m-p/138853#M101482</guid>
      <dc:creator>anbu_eswaran</dc:creator>
      <dc:date>2016-12-22T21:47:22Z</dc:date>
    </item>
    <item>
      <title>Re: how to use loop in hive</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-use-loop-in-hive/m-p/138854#M101483</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/13843/anbueswaran.html" nodeid="13843"&gt;@Anbu Eswaran&lt;/A&gt; please select the best answer as we don't know which answer helped most.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Dec 2016 00:20:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-use-loop-in-hive/m-p/138854#M101483</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-12-23T00:20:40Z</dc:date>
    </item>
    <item>
      <title>Re: how to use loop in hive</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-use-loop-in-hive/m-p/138855#M101484</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/12642/maheshmsh88.html" nodeid="12642"&gt;@Mahesh Mallikarjunappa&lt;/A&gt;&lt;/P&gt;&lt;P&gt;what is the purpose of test.hql? logic behind it?&lt;/P&gt;</description>
      <pubDate>Sun, 08 Jan 2017 00:25:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-use-loop-in-hive/m-p/138855#M101484</guid>
      <dc:creator>vamsi123</dc:creator>
      <dc:date>2017-01-08T00:25:10Z</dc:date>
    </item>
  </channel>
</rss>

